From 71b4ca54610e04ceafaa0657d707bce4c0e4f142 Mon Sep 17 00:00:00 2001 From: Marcin Wielgus Date: Sat, 26 Aug 2017 16:29:50 +0200 Subject: [PATCH] Dont block stale downs if no nodes can be removed --- cluster-autoscaler/core/static_autoscaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/core/static_autoscaler.go b/cluster-autoscaler/core/static_autoscaler.go index b78efa4a8f..0bf1e031e6 100644 --- a/cluster-autoscaler/core/static_autoscaler.go +++ b/cluster-autoscaler/core/static_autoscaler.go @@ -294,7 +294,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) errors.AutoscalerError glog.Errorf("Failed to scale down: %v", err) return typedErr } - if result == ScaleDownError || result == ScaleDownNoNodeDeleted { + if result == ScaleDownError { a.lastScaleDownFailedTrial = time.Now() } }