From f589b911f85449b0fda589fb852d805285c1e881 Mon Sep 17 00:00:00 2001 From: xigang Date: Tue, 30 Jan 2024 10:18:59 +0800 Subject: [PATCH] node_controller: improve taint eviction queue add worker time args Signed-off-by: xigang --- pkg/controller/tainteviction/taint_eviction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/tainteviction/taint_eviction.go b/pkg/controller/tainteviction/taint_eviction.go index f09ed443b4d..423024c4292 100644 --- a/pkg/controller/tainteviction/taint_eviction.go +++ b/pkg/controller/tainteviction/taint_eviction.go @@ -471,7 +471,7 @@ func (tc *Controller) processPodOnNode( logger.V(2).Info("Not all taints are tolerated after update for pod on node", "pod", podNamespacedName.String(), "node", klog.KRef("", nodeName)) // We're canceling scheduled work (if any), as we're going to delete the Pod right away. tc.cancelWorkWithEvent(logger, podNamespacedName) - tc.taintEvictionQueue.AddWork(ctx, NewWorkArgs(podNamespacedName.Name, podNamespacedName.Namespace), time.Now(), time.Now()) + tc.taintEvictionQueue.AddWork(ctx, NewWorkArgs(podNamespacedName.Name, podNamespacedName.Namespace), now, now) return } minTolerationTime := getMinTolerationTime(usedTolerations)