Skip to content
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

add option to specify pod selectors #215

Closed
wants to merge 1 commit into from

Conversation

fritterhoff
Copy link

@fritterhoff fritterhoff commented Nov 19, 2022

Should solve #207

@patrickjahns
Copy link

Really would love to see this upstream implemented - maybe we can solve the CI issue and then reach out to the maintainers to include this change?

Comment on lines +267 to +271
if drain.PodSelector != nil {
args = append(args, "--pod-selector", `!`+upgradeapi.LabelController+`,`+*drain.PodSelector)
} else {
args = append(args, "--pod-selector", `!`+upgradeapi.LabelController)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't touched Go code in nearly a year but this looks like it could be a one-liner to me.

Thank you for remembering the magic that prevents the upgrade from draining itself off of the node-to-be-upgraded!

@brandond
Copy link
Member

Duplicate of #231

@brandond brandond marked this as a duplicate of #231 May 25, 2023
@brandond brandond closed this May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants