Skip to content

Commit

Permalink
Merge pull request #3597 from ryaneorth/cherry-pick-3570-1.19
Browse files Browse the repository at this point in the history
Merge pull request #3570 from towca/jtuznik/scale-down-after-delete-fix
  • Loading branch information
k8s-ci-robot authored Oct 15, 2020
2 parents fad6360 + a02e9a5 commit 814935b
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 814935b

Please sign in to comment.