Skip to content

Commit 384d290

Browse files
committed
Add context argument to Pods.Evict call
Change-Id: I02341ca8dae550569a1c6fec4b88d92a145cd5d4
1 parent a97cf75 commit 384d290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster-autoscaler/core/scale_down.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ func evictPod(podToEvict *apiv1.Pod, client kube_client.Interface, recorder kube
11631163
GracePeriodSeconds: &maxTermination,
11641164
},
11651165
}
1166-
lastError = client.CoreV1().Pods(podToEvict.Namespace).Evict(eviction)
1166+
lastError = client.CoreV1().Pods(podToEvict.Namespace).Evict(ctx.TODO(), eviction)
11671167
if lastError == nil || kube_errors.IsNotFound(lastError) {
11681168
return status.PodEvictionResult{Pod: podToEvict, TimedOut: false, Err: nil}
11691169
}

0 commit comments

Comments
 (0)