-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Small refactoring around drain - move drain logic to separate function. #24923
Conversation
|
||
// GetPodsForDeletionOnNodeDrain returns pods that should be deleted on node drain as well as some extra information | ||
// about possibly problematic pods (unreplicated and deamon sets). | ||
func GetPodsForDeletionOnNodeDrain(client *client.Client, nodename string, decoder runtime.Decoder, removeUnderplicated bool, |
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.
Suggest making this private
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.
removeUnderplicated
: did you mean removeUnreplicated
(typo)?
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.
why not name it force
?
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.
The whole purpose of this refactoring is to make it public :).
Other comments applied.
LGTM now. Thanks! |
cc @mml |
Bumped priority, cluster autoscaler in a blocker for 1.3 |
GCE e2e build/test passed for commit 60f1339. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 60f1339. |
Automatic merge from submit-queue |
cc: @piosz @fgrzadkowski