-
Notifications
You must be signed in to change notification settings - Fork 669
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 bug that evicts non-evictable pods #484
Fix TopologySpread bug that evicts non-evictable pods #484
Conversation
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.
/cc @ingvagabund
ptal
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi 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 |
/priority critical-urgent |
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 |
Fix TopologySpread bug that evicts non-evictable pods
TopologySpreadConstraint does not properly check if a pod is evictable before calling
EvictPod
(due to the fact that it does not rely onListPodsOnNode
, which takesIsEvictable
as a parameter and does the check there for most of the other strategies).This breaks the check out explicitly. It could also be refactored to do this check in
balanceDomains
, when building the list of evictable pods.