diff --git a/cluster-autoscaler/core/static_autoscaler.go b/cluster-autoscaler/core/static_autoscaler.go index b736a8bc0a28..296f4badc30a 100644 --- a/cluster-autoscaler/core/static_autoscaler.go +++ b/cluster-autoscaler/core/static_autoscaler.go @@ -465,7 +465,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 e9b92bbf30bf..8bce4c48b558 100644 --- a/cluster-autoscaler/processors/status/scale_down_status_processor.go +++ b/cluster-autoscaler/processors/status/scale_down_status_processor.go @@ -49,8 +49,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