diff --git a/cluster-autoscaler/core/static_autoscaler.go b/cluster-autoscaler/core/static_autoscaler.go index 456ceae6a3f0..0f9dab7f0fab 100644 --- a/cluster-autoscaler/core/static_autoscaler.go +++ b/cluster-autoscaler/core/static_autoscaler.go @@ -529,7 +529,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) errors.AutoscalerError scaleDownStatus.RemovedNodeGroups = removedNodeGroups - if scaleDownStatus.Result == status.ScaleDownNodeDeleted { + if scaleDownStatus.Result == status.ScaleDownNodeDeleteStarted { a.lastScaleDownDeleteTime = currentTime a.clusterStateRegistry.Recalculate() } diff --git a/cluster-autoscaler/processors/status/scale_down_status_processor.go b/cluster-autoscaler/processors/status/scale_down_status_processor.go index 62b7c90e5961..de30a5c0038c 100644 --- a/cluster-autoscaler/processors/status/scale_down_status_processor.go +++ b/cluster-autoscaler/processors/status/scale_down_status_processor.go @@ -88,8 +88,6 @@ const ( ScaleDownNoUnneeded // ScaleDownNoNodeDeleted - unneeded nodes present but not available for deletion. ScaleDownNoNodeDeleted - // ScaleDownNodeDeleted - a node was deleted. - ScaleDownNodeDeleted // ScaleDownNodeDeleteStarted - a node deletion process was started. ScaleDownNodeDeleteStarted // ScaleDownNotTried - the scale down wasn't even attempted, e.g. an autoscaling iteration was skipped, or