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

removepodsviolatingtopologyspreadconstraint: topologyBalanceNodeFit to control whether to perform nodefit when balacning domains

This commit is contained in:
Amir Alavi
2023-06-03 17:49:20 -04:00
parent f5a7f716b3
commit 5f0edb5f93
9 changed files with 64 additions and 12 deletions

View File

@@ -15,6 +15,7 @@ package removepodsviolatingtopologyspreadconstraint
import (
"k8s.io/apimachinery/pkg/runtime"
utilpointer "k8s.io/utils/pointer"
)
func addDefaultingFuncs(scheme *runtime.Scheme) error {
@@ -34,4 +35,7 @@ func SetDefaults_RemovePodsViolatingTopologySpreadConstraintArgs(obj runtime.Obj
if !args.IncludeSoftConstraints {
args.IncludeSoftConstraints = false
}
if args.TopologyBalanceNodeFit == nil {
args.TopologyBalanceNodeFit = utilpointer.Bool(true)
}
}