From 7349b398e5b3d891c92848bc6b33e042114fdc74 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Mon, 26 Sep 2022 13:43:41 +0200 Subject: [PATCH] includeSoftConstraints not being respected for TopologySpreadConstraint Issue #960 Signed-off-by: Vlastimil Holer --- pkg/descheduler/strategy_migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/descheduler/strategy_migration.go b/pkg/descheduler/strategy_migration.go index 410f1577f..7a4abb681 100644 --- a/pkg/descheduler/strategy_migration.go +++ b/pkg/descheduler/strategy_migration.go @@ -212,7 +212,7 @@ var pluginsMap = map[string]func(ctx context.Context, nodes []*v1.Node, params * args := &componentconfig.RemovePodsViolatingTopologySpreadConstraintArgs{ Namespaces: params.Namespaces, LabelSelector: params.LabelSelector, - IncludeSoftConstraints: params.IncludePreferNoSchedule, + IncludeSoftConstraints: params.IncludeSoftConstraints, } if err := validation.ValidateRemovePodsViolatingTopologySpreadConstraintArgs(args); err != nil { klog.V(1).ErrorS(err, "unable to validate plugin arguments", "pluginName", removepodsviolatingtopologyspreadconstraint.PluginName)