Skip to content

Commit

Permalink
Merge pull request kubernetes#3570 from towca/jtuznik/scale-down-afte…
Browse files Browse the repository at this point in the history
…r-delete-fix

Remove ScaleDownNodeDeleted status since we no longer delete nodes synchronously
  • Loading branch information
k8s-ci-robot authored Oct 1, 2020
2 parents 7a264f5 + bf18d57 commit b774e57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b774e57

Please sign in to comment.