-
Notifications
You must be signed in to change notification settings - Fork 41.6k
[FG:InPlacePodVerticalScaling] Fixed the apiserver panic issue that occurred when adding a container during pod updates in the InPlacePodVerticalScaling scenario. #127291
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
Conversation
|
Hi @zhifei92. Thanks for your PR. I'm waiting for a kubernetes 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-sigs/prow repository. |
|
/sig api-machinery |
|
Should we consider adding a test case related to this issue? It could help catch it during a pipeline stage. |
|
/triage accepted |
|
/retest-required |
1 similar comment
|
/retest-required |
|
/assign |
|
LGTM label has been added. Git tree hash: f3c6e80ae7a469cb624dffd282b4a95c1bfb7c53
|
|
/milestone v1.32 |
|
Hello @tallclair @zhifei92 |
|
@tallclair Hi, can this PR be merged now? |
|
Please add the comment to the validation, and fix the test names. |
add unit test refactor: Merge the test cases into TestMarkPodProposedForResize. chore: Add the comment and fix the test names
c2e043a to
5c01709
Compare
|
/test pull-kubernetes-e2e-kind |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 574aee4a24ff1b959c678607c156af9f3e91248b
|
|
/assign @thockin |
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tallclair, thockin, zhifei92 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 |
|
@tallclair Hi, this issue was found in v1.31, so does this PR need to be cherry-picked to v1.31? |
|
I don't think we usually backport fixes for alpha features, at least not for corner cases like this. |
get |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Before upgrading a pod, the kube-apiserver validates the pod using strategy.ValidateUpdate. Adding or removing containers from the pod is deemed invalid. However, strategy.PrepareForUpdate(MarkPodProposedForResize is called) is invoked prior to strategy.ValidateUpdate, causing a panic when InPlacePodVerticalScaling is enabled.
Which issue(s) this PR fixes:
Fixes #127282
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: