-
Notifications
You must be signed in to change notification settings - Fork 41.1k
[FG:InPlacePodVerticalScaling] Don't read AllocatedResources from PodStatus during admission #133281
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
base: master
Are you sure you want to change the base?
Conversation
@tallclair: GitHub didn't allow me to request PR reviews from the following users: pravk03. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tallclair 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 |
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
LGTM label has been added. Git tree hash: a1713ca1582c2764a241dce03213edbc9f7e7b12
|
/triage accepted |
/lgtm |
@pravk03: changing LGTM is restricted to collaborators 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-sigs/prow repository. |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
1 similar comment
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
/cc @ffromani for approval |
/test pull-kubernetes-node-kubelet-serial-cpu-manager |
/lgtm |
/retest |
@tallclair since Allocation manager is introduced in v1.34 i think would be great if this commit can be part of v1.34 as well. We can monitor for flaky tests/corner case, i think this commit will have low risk of impacting behaviour since IPPVS static policy is safeguarded but just in case. |
|
During last weeks in v1.34 couple of tasks have been moved to allocation Manager like PodAdmission and resize. I thought it’s a good idea to include this as well to have them all in one bundle. No any other special reason. |
Yeah, I didn't intend for this to be included in v1.34, since I don't have any indication that it's an actual bug. This would only be a problem if something initiated the container status before it was admitted by the kubelet. I think we should wait for v1.35 to merge this. |
8333cff
to
30b34fb
Compare
/lgtm |
LGTM label has been added. Git tree hash: 422e57b60f0c5e260db6b5be3f89cea9acc5b3b6
|
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
4 similar comments
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
Failure in windows pipeline is not related with this commit , there is a known flaky test issue monitored by #133297 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
1 similar comment
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The static CPU policy & static memory policies attempt to read resource requests from the
AllocatedResources
in the container status, but the way this is done could be problematic if the container status is set without allocated resources. Allocated resources should be read from the allocation manager directly instead.Fortunately, the requests are only read through the
Allocate
,GetTopologyHints
andGetPodTopologyHints
methods, which are only called throughTopologyManager.Admit
, and we already overwrite the desired resources with allocated resources in admission, so we can simply remove the logic to explicitly read the allocated resources.Which issue(s) this PR is related to:
N/A
Special notes for your reviewer:
This can wait until v1.35
Does this PR introduce a user-facing change?
/sig node
/priority important-longterm
/assign @natasha41575
/cc @pravk03 @esotsal