Skip to content
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

Merged
merged 2 commits into from
Apr 12, 2020

Conversation

jnschaeffer
Copy link
Contributor

@jnschaeffer jnschaeffer commented Mar 27, 2020

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):

  • README.md contains duplicate entries for delete_cluster_custom_object and delete_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.)
  • scripts/update-client.sh wasn't compatible with macOS, so I made a couple of small tweaks to make the script more portable. It seems like they should be fine on Linux but I haven't confirmed that.

Beyond that, the client seems to work for my case, and the warnings about unawaited coroutines have gone away.

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.
Copy link
Owner

@tomplus tomplus left a 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.

Comment on lines +631 to +634
*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} |
Copy link
Owner

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.

@jnschaeffer
Copy link
Contributor Author

@tomplus Just checking in on this; let me know if you need anything further for the PR.

@tomplus tomplus merged commit 48d82d1 into tomplus:master Apr 12, 2020
@tomplus
Copy link
Owner

tomplus commented Apr 13, 2020

Your change has been released in v11.2.0. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants