-
Notifications
You must be signed in to change notification settings - Fork 71
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
Regenerate client against openapi-generator v4.3.0 #99
Conversation
The latest version of openapi-generator includes a fix to make asyncio-based Python clients explicitly closable and usable within an asynchronous context manager. This commit regenerates the client against openapi-generator v4.3.0 and updates the commit hash in scripts/update-client.sh.
scripts/update-client.sh was failing to run properly due to .. literals in path names and missing rgrep. This commit uses dirname in place of ${SCRIPT_ROOT}/.. and `grep -r` in place of rgrep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. I'll test it and merge soon.
*CustomObjectsApi* | [**delete_cluster_custom_object**](docs/CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} | | ||
*CustomObjectsApi* | [**delete_cluster_custom_object_0**](docs/CustomObjectsApi.md#delete_cluster_custom_object_0) | **DELETE** /apis/{group}/{version}/{plural}/{name} | | ||
*CustomObjectsApi* | [**delete_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | | ||
*CustomObjectsApi* | [**delete_namespaced_custom_object_0**](docs/CustomObjectsApi.md#delete_namespaced_custom_object_0) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's introduced by kubernetes-client/gen#150 and we can leave it as is.
@tomplus Just checking in on this; let me know if you need anything further for the PR. |
Your change has been released in v11.2.0. Thank you. |
I recently ran into #91 and saw that OpenAPITools/openapi-generator#5621 had just been merged, which is great! Since I could use this feature, I thought I would try regenerating the client myself against openapi-generator v4.3.0.
Two things are important here (besides the fact that the client has been regenerated):
delete_cluster_custom_object
anddelete_namespaced_custom_object
. I'm not sure why, but I'm happy to look into it. (EDIT: It looks like these are also in the generated source, which isn't great.)Beyond that, the client seems to work for my case, and the warnings about unawaited coroutines have gone away.