-
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
UNKNOWN_BASE_TYPE in documentation for patch_* methods #1020
Comments
It's not clear to me too |
JFYI, I have tried to |
cc @tomplus /assign |
There was no UNKNOWN_BASE_TYPE in 10.0 client (Kubernetes 1.14). This looks like a regression introduced by either openapi-generator or Kubernetes 1.15. |
It looks like openapi-generator insert it when the spec doesn't define the content-type: In v10 we have NULL which is also incorrect: The content-type in |
Running into this problem myself. Will the documentation be regenerated soon, or is there different documentation I can look at? Pretty new to interacting with the API directly, so not having documentation on what the body of a request should look like is somewhat tough. |
If anyone runs in to this issue a good way to find out what api object is needed is to edit the resource in question with kubectl edit -v 9 ex : if we wanted to patch the annotations in a pod run: kubectl edit pod vault-test -v 9 This tells you what the body of the patch needs to be for the particular patch you're requesting (in the example case we're annotating metadata). |
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. |
Running into this problem, confusing too. 😭 |
I ran into this as well last, but I think I've gotten it for the most part figured out. The way that this is now displayed in the docs ( I believe that the body of all of these request types is just meant to be an arbitrary
|
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. |
Link to the issue (please include a link to the specific documentation or example):
https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/AppsV1Api.md#patch_namespaced_deployment_scale and other
patch_*
methods.Description of the issue (please include outputs or screenshots if possible):
The type for the method's
body
parameter isUNKNOWN_BASE_TYPE
. It's not clear to me what to pass to the method (i'm guessingV1Scale
in this instance).The text was updated successfully, but these errors were encountered: