-
Notifications
You must be signed in to change notification settings - Fork 40.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Posting a rollback returns a deploymentstatus #56591
Conversation
Posting a rollback doesnt return a rollback object, it instead returns a deployment status.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nhumrich Assign the PR to them by writing No associated issue. Update pull-request body to add a reference to an issue, or get approval with The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/release-note-none |
/assign @liggitt |
This file is generated and can not be manually modified. |
@mbohlool suggestions for ensuring the correct return type is displayed? |
I have no idea where to even go to change this then. Can you point me in the right direction? |
@nhumrich you are probably on the right track with this change, next step would be to run @liggitt i believe the swagger.json is the one that gets auto generated. but the experiment above update-all should confirm if the changes hold up. for sure, just editing the json file is not enough. let me kick off the tests to confirm. /ok-to-test |
@nhumrich: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
I would really like to help/contribute. But honestly, im stuck. I have no idea where the change needs to be made:
I tried the suggested:
but just get an error, cant even run the file.
I have no idea where to go from here (yes I ran |
@caesarxuchao can you help |
/assign I think I figured out what's going on here. The
The problem is in the second step. When we are installing extensions.v1beta1, the apiserver by defaults registered kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go Lines 703 to 707 in da44038
Note that you can specified the kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go Lines 236 to 239 in da44038
The
I tested with adding the following lines into
and ran
Note that this changes both |
Stale issue? |
I hope this issue isn't stale. I could really benefit from a fix. I don't have the knowledge to know how to push this issue further by myself. |
@nhumrich If #56591 (comment) wasn't clear, I can apply the fix if you want. |
Yes please |
Automatic merge from submit-queue (batch tested with PRs 65377, 63837, 65370, 65294, 65376). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix openapi spec: posting a rollback returns a deploymentstatus **What this PR does / why we need it**: Fix openapi spec and documentation. Posting a rollback doesnt return a rollback object, it instead returns a deployment status. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: ref #56591 **Release note**: ```release-note NONE ``` /sig api-machinery /sig apps
Hey - sorry, I didn't quite follow all of the above. Does #63837 being merged in supersede this PR, or does this need to go in as well in order for the issue to be resolved? |
@greggilbert #63837 contains the change in this PR. The openapi/swagger specs has been fixed. We could close this PR now /close |
Posting a rollback doesnt return a rollback object, it instead returns a deployment status.
What this PR does / why we need it:
Fixes the swagger spec. Its needed because the automatically generated clients (i,e. python) break when calling this api because they cant correctly deserialize the object
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: