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

Descheduler should not run when cluster size is 1

This commit is contained in:
ravisantoshgudimetla
2018-02-08 21:15:02 -05:00
parent 11a95ce8fb
commit ba3eac6c57

View File

@@ -55,8 +55,8 @@ func Run(rs *options.DeschedulerServer) error {
return err
}
if len(nodes) == 0 {
glog.V(1).Infof("node list is empty")
if len(nodes) <= 1 {
glog.V(1).Infof("The cluster size is 0 or 1 meaning eviction causes service disruption or degradation. So aborting..")
return nil
}