Unverified Commit f72ef8c2 authored by Daniel Holbach's avatar Daniel Holbach Committed by GitHub
Browse files

Merge pull request #438 from jackfrancis/kubectl-cordon-context

fix: don't use nil context in drain helper
parents b5a4bf43 3c250805
......@@ -401,6 +401,7 @@ func uncordon(client *kubernetes.Clientset, node *v1.Node) {
Client: client,
ErrOut: os.Stderr,
Out: os.Stdout,
Ctx: context.Background(),
}
if err := kubectldrain.RunCordonOrUncordon(drainer, node, false); err != nil {
log.Fatalf("Error uncordonning %s: %v", nodename, err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment