Commit 3c250805 authored by Jack's avatar Jack
Browse files

fix: don't use nil context in drain helper

parent b5a4bf43
......@@ -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