From c40a255eae815cb6ef177ff64926b538bff6014b Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Wed, 24 Mar 2021 10:21:27 -0700 Subject: [PATCH] Remove errant double queue This seems to be a typo where we erroneously double-queue a deletion, but one without the "key". --- node/podcontroller.go | 1 - 1 file changed, 1 deletion(-) diff --git a/node/podcontroller.go b/node/podcontroller.go index d1731bf65..f8342f956 100644 --- a/node/podcontroller.go +++ b/node/podcontroller.go @@ -509,7 +509,6 @@ func (pc *PodController) syncPodInProvider(ctx context.Context, pod *corev1.Pod, // more context is here: https://github.com/virtual-kubelet/virtual-kubelet/pull/760 if pod.DeletionTimestamp != nil && !running(&pod.Status) { log.G(ctx).Debug("Force deleting pod from API Server as it is no longer running") - pc.deletePodsFromKubernetes.EnqueueWithoutRateLimit(ctx, key) key = fmt.Sprintf("%v/%v", key, pod.UID) pc.deletePodsFromKubernetes.EnqueueWithoutRateLimit(ctx, key) return nil