-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.Configuration.proxy
doesn't work.
#90
Comments
@tatsuya0619 Thanks. It looks good to me but it has to be fixed in the generator template: Could you create a PR to the openapi-generator? I can help with tests, what kind of errors have you got? |
I'm sorry, but I don't have time now to create a PR to the openapi-generator repo. And about the pytest error, my words are incorret. I modified pytest code like below to communicate with Kubernetes cluster via http proxy:
I run pytest on GKE via http proxy.
I couldn't spend time to research this error. Thanks. |
Also just noticed this, opened swagger-api/swagger-codegen#9995 on generator repo. |
Thanks for describing the issue. I'll work on it later. |
I was trying to use this library with http proxy.
However, if I set the 'proxy' configuration(like below script) and run the program,
ka.client.CoreV1Api()
raises TypeError.This is the script(almost same as
README.md
sample):The output is:
I think
proxy
argument should be passed toaiohttp.ClientSession.request
instead ofaiohttp.ClientSession
.I could run the above script by changing
kubernetes_asyncio.client.rest.RESTClientObject
.The change is:
However this change doesn't pass pytest via http proxy.
So I'm not sure this is correct.
Thanks.
The text was updated successfully, but these errors were encountered: