From 52d226321bddded51b7a532647f0cecc07115afc Mon Sep 17 00:00:00 2001 From: Gabriel Tiossi Date: Sun, 3 Mar 2024 03:28:18 +0000 Subject: [PATCH] fix(plugins): node taint wrong option --- .../plugins/removepodsviolatingnodetaints/node_taint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint.go index 41f2dc52d..446efbeaf 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint.go @@ -112,7 +112,7 @@ func (d *RemovePodsViolatingNodeTaints) Deschedule(ctx context.Context, nodes [] d.taintFilterFnc, ) { klog.V(2).InfoS("Not all taints with NoSchedule effect are tolerated after update for pod on node", "pod", klog.KObj(pods[i]), "node", klog.KObj(node)) - d.handle.Evictor().Evict(ctx, pods[i], evictions.EvictOptions{ProfileName: PluginName}) + d.handle.Evictor().Evict(ctx, pods[i], evictions.EvictOptions{StrategyName: PluginName}) if d.handle.Evictor().NodeLimitExceeded(node) { break }