-
Notifications
You must be signed in to change notification settings - Fork 42.1k
Add CreateOptions and UpdateOptions to apiserver rest parameter installation #69359
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
Add CreateOptions and UpdateOptions to apiserver rest parameter installation #69359
Conversation
|
/kind bug |
|
/lgtm Thank you for working on this. |
| "uniqueItems": true, | ||
| "type": "boolean", | ||
| "description": "If true, partially initialized resources are included in the response.", | ||
| "name": "includeUninitialized", |
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.
These includeUninitialized's are moved to Path-level parameters (one level higher) from Operation-level parameters, because all operations under the path use includeUninitialized
|
/assign @lavalamp I plan to cherrypick this into 1.12.1, which probably will be released around 10/11 (two weeks after 1.12.0) /retest |
|
/assign @mbohlool |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apelisse, lavalamp, mbohlool, roycaihw The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…59-upstream-release-1.12 Automated cherry pick of #69359: Add Create and Update Options to rest param installation
What this PR does / why we need it:
In 1.12 we introduced
metav1.CreateOptionsandmetav1.UpdateOptionsto supportdryRunquery parameter in apiserver POST/PUT/PATCH/DELETE handlers: #65105. However our openapi spec didn't reflect the parameter in POST/PUT/PATCH operations.This PR adds CreateOptions and UpdateOptions to apiserver rest parameter installation, to parse the option struct and register the query parameters.
The openapi-generated clients (python, java, etc.) are unaware of the
dryRunparameter without this fix. We may want to cherrypick this PR to 1.12, to make those clients support dry-run.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 #69304
Release note:
/cc @apelisse @mbohlool
/sig api-machinery