-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Change eviction logic in NodeController and make it Zone-aware #28897
Conversation
9b29ae3
to
1d9937e
Compare
24056ad
to
6ae8d41
Compare
@wojtek-t PTAL |
@@ -36,17 +36,28 @@ import ( | |||
) | |||
|
|||
// This function is expected to get a slice of NodeReadyConditions for all Nodes in a given zone. | |||
// The zone is considered: | |||
// - fullyDisrupted if there're no Ready Nodes, | |||
// - partiallyDisrupted if more than 1/3 of Nodes (no less than 3) are not Ready, |
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.
nit: s/no less than 3/at least 3/ ?
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.
also maybe:
s/not Ready/NotReady/
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.
First done, second discussed f2f (it's a 3-value logic, so NotReady != not Ready)
Added a bunch of new comments, but it generally looks ok (please use the new commit to apply them - we will squash at the end). |
I think I'm fine with the PR - please squash the commits and I will do quick final pass. |
@wojtek-t - squshed. |
GCE e2e build/test passed for commit 66224ce. |
LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 66224ce. |
Automatic merge from submit-queue |
Ref. #28832
This PR changes the behavior of the NodeController. From now on
cc @wojtek-t @smarterclayton @davidopp