mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
node_controller: improve taint eviction queue add worker time args
Signed-off-by: xigang <wangxigang2014@gmail.com>
This commit is contained in:
parent
65e77e7775
commit
f589b911f8
@ -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))
|
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.
|
// We're canceling scheduled work (if any), as we're going to delete the Pod right away.
|
||||||
tc.cancelWorkWithEvent(logger, podNamespacedName)
|
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
|
return
|
||||||
}
|
}
|
||||||
minTolerationTime := getMinTolerationTime(usedTolerations)
|
minTolerationTime := getMinTolerationTime(usedTolerations)
|
||||||
|
Loading…
Reference in New Issue
Block a user