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

fix pull-descheduler-verify-master build error

This commit is contained in:
vlc刘诚
2022-09-24 09:08:06 +08:00
parent bfb688e016
commit ac0261fafb
7 changed files with 11 additions and 11 deletions

View File

@@ -27,16 +27,16 @@ func SetDefaults_DefaultEvictorArgs(obj *DefaultEvictorArgs) {
if obj.NodeSelector == "" {
obj.NodeSelector = ""
}
if obj.EvictLocalStoragePods == false {
if !obj.EvictLocalStoragePods {
obj.EvictSystemCriticalPods = false
}
if obj.EvictSystemCriticalPods == false {
if !obj.EvictSystemCriticalPods {
obj.EvictSystemCriticalPods = false
}
if obj.IgnorePvcPods == false {
if !obj.IgnorePvcPods {
obj.IgnorePvcPods = false
}
if obj.EvictFailedBarePods == false {
if !obj.EvictFailedBarePods {
obj.EvictFailedBarePods = false
}
if obj.LabelSelector == nil {
@@ -45,7 +45,7 @@ func SetDefaults_DefaultEvictorArgs(obj *DefaultEvictorArgs) {
if obj.PriorityThreshold == nil {
obj.PriorityThreshold = nil
}
if obj.NodeFit == false {
if !obj.NodeFit {
obj.NodeFit = false
}
}