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

test: Overwrite existing taint when labeling nodes with NoSchedule #11221

Merged
merged 1 commit into from Apr 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/helpers/kubectl.go
Expand Up @@ -380,7 +380,7 @@ func (kub *Kubectl) labelNodes() error {
if node != "" {
// Prevent scheduling any pods on the node, as it will be used as an external client
// to send requests to k8s{1,2}
cmd := fmt.Sprintf("%s taint nodes %s key=value:NoSchedule", KubectlCmd, node)
cmd := fmt.Sprintf("%s taint --overwrite nodes %s key=value:NoSchedule", KubectlCmd, node)
res := kub.ExecMiddle(cmd)
if !res.WasSuccessful() {
return fmt.Errorf("unable to taint node with '%s': %s", cmd, res.OutputPrettyPrint())
Expand Down