-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Question before implementing PR regarding keep-alive connections #768
Comments
Hi. We are moving from swagger-codegen to openapi-generator. You can track it here: kubernetes-client/gen#93. It'd be better to add this feature to openapi-generator. |
@lalo May I know if you've time to submit a PR for OpenAPI Generator to enable keep-alive in the Python client? |
If it's urgent you should go ahead and implement it, if not I have some personal time constraints and can't prioritize this high enough (maybe in a week or 2). |
Please take your time and let us know if you need help with the PR. Thanks for your contribution in advance. |
After taking a second look, it seems that there is no need to modify OpenApi generator, since the request method already has a way to modify the headers. python/kubernetes/client/rest.py Line 118 in 6d4587e
My take is that we should/could be able to set it to |
@lalo Sure, we can use this method for the time being. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm interested in adding a config to enable keep-alive on the connections with urllib3 connection pools. I see that this dependency is brought by the swagger-codegen -> https://github.com/kubernetes-client/python/blob/master/kubernetes/client/configuration.py#L43
If I contribute this to the swagger-codegen project, this project actively moves the dependency to the latest right? Also, is this the right approach or am I missing something else?
Thanks
The text was updated successfully, but these errors were encountered: