From 951d10d21405eaa3a582ea71eb784f364f74fd7b Mon Sep 17 00:00:00 2001 From: sbadiger Date: Sat, 18 Nov 2023 11:56:25 -0800 Subject: [PATCH] include context in cordon and drain functions --- controllers/providers/kubernetes/nodes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/providers/kubernetes/nodes.go b/controllers/providers/kubernetes/nodes.go index 3280b3a7..489561d2 100644 --- a/controllers/providers/kubernetes/nodes.go +++ b/controllers/providers/kubernetes/nodes.go @@ -50,6 +50,7 @@ func (k *KubernetesClientSet) DrainNode(node *corev1.Node, PostDrainDelaySeconds } helper := &drain.Helper{ + Ctx: context.Background(), Client: client, Force: true, GracePeriodSeconds: -1,