mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Fix eviction of pods in low node utilization strategy.
This commit is contained in:
@@ -112,7 +112,7 @@ func LowNodeUtilization(client clientset.Interface, strategy api.ReschedulerStra
|
||||
fmt.Printf("Evicted pod: %#v (%#v)\n", pod.Name, err)
|
||||
n--
|
||||
if n < 0 {
|
||||
continue
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ func LowNodeUtilization(client clientset.Interface, strategy api.ReschedulerStra
|
||||
fmt.Printf("Evicted pod: %#v (%#v)\n", pod.Name, err)
|
||||
n--
|
||||
if n < 0 {
|
||||
continue
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user