From b37db364dfcfe0254c8645c6c50178ffaf6da153 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Tue, 15 Aug 2017 10:38:44 -0400 Subject: [PATCH] Fix eviction of pods in low node utilization strategy. --- pkg/rescheduler/strategies/lownodeutilization.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rescheduler/strategies/lownodeutilization.go b/pkg/rescheduler/strategies/lownodeutilization.go index 1c63e32c1..8e235720d 100644 --- a/pkg/rescheduler/strategies/lownodeutilization.go +++ b/pkg/rescheduler/strategies/lownodeutilization.go @@ -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 } } }