1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

includeSoftConstraints not being respected for TopologySpreadConstraint

Issue #960

Signed-off-by: Vlastimil Holer <vh@fortrabbit.com>
This commit is contained in:
Vlastimil Holer
2022-09-26 13:43:41 +02:00
committed by Lucas Severo Alves
parent 59834cf8a7
commit 3998a0246b

View File

@@ -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)