-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
fix(topologyspread): register UpdatePodTolerations when QHint is enabled #127447
fix(topologyspread): register UpdatePodTolerations when QHint is enabled #127447
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/cc @macsko |
/cc @alculquicondor /hold |
cc @dom4ha |
// The Pod rejected by this plugin can be schedulable when the Pod has a spread constraint with NodeTaintsPolicy:Honor | ||
// and has got a new toleration. | ||
// So, we add UpdatePodTolerations here only when QHint is enabled. | ||
podActionType = framework.Add | framework.UpdatePodLabel | framework.UpdatePodTolerations | framework.Delete |
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.
I understand why we add this event when qhints is enabled, but why not when it's not?
Is it because we don't use events to retrigger the requeue of the unschedulable pod if QueueingHint is not enabled? Try to rework the comment.
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.
Added the explanation a bit, how about now?
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.
Better, thanks!
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.
/approve
I'll leave LGTM to @macsko
// The Pod rejected by this plugin can be schedulable when the Pod has a spread constraint with NodeTaintsPolicy:Honor | ||
// and has got a new toleration. | ||
// So, we add UpdatePodTolerations here only when QHint is enabled. | ||
podActionType = framework.Add | framework.UpdatePodLabel | framework.UpdatePodTolerations | framework.Delete |
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.
Better, thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, sanposhiho 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 |
/lgtm |
LGTM label has been added. Git tree hash: 7a3c529df078bcd232cbf78b17636bd314640429
|
/unhold |
What type of PR is this?
/kind bug
What this PR does / why we need it:
If the Pod has a spread constraint with
NodeTaintsPolicy:Honor
and are rejected by PodTopologySpread, they could be schedulable when it has got a new toleration. But, we didn't register UpdatePodTolerations.This is a bug that is only valid when QHint is enabled because when QHint is disabled, we requeue unsched Pods with any kind of updates to them.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: