Skip to content

Commit

Permalink
include context in cordon and drain functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-badiger committed Nov 18, 2023
1 parent a304b32 commit 951d10d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/providers/kubernetes/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (k *KubernetesClientSet) DrainNode(node *corev1.Node, PostDrainDelaySeconds
}

helper := &drain.Helper{
Ctx: context.Background(),
Client: client,
Force: true,
GracePeriodSeconds: -1,
Expand Down

0 comments on commit 951d10d

Please sign in to comment.