Merge pull request #3598 from ryaneorth/cherry-pick-3570-1.18
Merge pull request #3570 from towca/jtuznik/scale-down-after-delete-fix
This commit is contained in:
commit
b2962ef323
|
|
@ -516,7 +516,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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue