-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Restructure resize policy naming and set default resize policy values #116119
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
Restructure resize policy naming and set default resize policy values #116119
Conversation
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
/remove-sig api-machinery |
3a68f30 to
338ebaf
Compare
|
/assign @thockin @derekwaynecarr |
…estartNotRequired -> NotRequired
b38378d to
06e1692
Compare
|
ping @thockin please review. Latest commit fixes RestartNotRequired -> NotRequired and sets ResizePolicy only for specified resources (which looks much cleaner) |
|
Squash or leave it? |
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.
Thanks!
/lgtm
/approve
| } | ||
| } | ||
| } | ||
| if utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling) && |
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.
Follow up with a test? :)
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.
Yes, a more comprehensive test is warranted, sorry for the miss. I'll bring it with GetPodQoS -> PodQOSClass change.
Having a stiff drink rn :)
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 label has been added. Git tree hash: 53d283b5a6e0b57fdbc02c0ba4e16895a201f18e
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thockin, vinaykul 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 |
|
/release-note-edit |
In terms of release notes, these fields are new in 1.27 and we probably should not call out renaming explicitly - if added to release notes as-is it will be confusing |
|
/release-note-none |
|
@pacoxu: you can only set the release note label to release-note-none if the release-note block in the PR body text is empty or "none". 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. |
|
@pacoxu I don't see it in the CHANGELOG. Isn't that where the release notes go? I can attach the fix to the missing unit test PR. |
|
I am afraid that it has already been collected to the Changelog: kubernetes/CHANGELOG/CHANGELOG-1.27.md Line 232 in 8e01ee7
|
|
/release-note-none |
Ah.. I'll piggy back a CHANGELOG update with unit test addition PR |
What type of PR is this?
/kind cleanup
/kind api-change
What this PR does / why we need it:
This PR restructures resize policy naming and sets default resize policy values.
ResourceResizePolicytype is renamed toResourceResizeRestartPolicyandRestartRequiredpolicy value is renamed toRestartContainerRestartNotRequiredpolicy is defaulted for CPU and memory resources.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Please review specific commits, bulk of the changes are just generated files.
Resize policy name restructuring commit: 2d3569b
Set default resize policy commit: 4b5099e
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: