-
Notifications
You must be signed in to change notification settings - Fork 706
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
fix calling custom_api.delete_namespaced_custom_object args error #1281
Conversation
Hi @Windfarer. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
LGTM 👍
/lgtm
/ok-to-test |
@Windfarer: The following test failed, say
Full PR test history. Your PR dashboard. 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 understand the commands that are listed here. |
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.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege, terrytangyuan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fix #1275
This issue is mainly caused by the API upgrade in kubernetes-client/python#1141
Related code is here https://github.com/kubernetes-client/python/blob/c206745dcd491d64b63260c6b6f46e3a3a81b101/kubernetes/client/api/custom_objects_api.py#L559
This commit drops the args
name
andbody
, then recover thename
args in the following commits.Now this API's
body
argument is handled by kwargs.If user install kubernetes python client's version >= v11.0.0 will run into this error.
The temporary solution is to downgrade kubernetes client to v10.1.0
And a possible fixing is to use keyword arguments instead of positional arguments.