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)