We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48b26e commit a06b1c9Copy full SHA for a06b1c9
cluster-autoscaler/cloudprovider/azure/azure_scale_set.go
@@ -452,7 +452,7 @@ func (scaleSet *ScaleSet) DeleteInstances(instances []*azureRef) error {
452
// Proactively decrement scale set size so that we don't
453
// go below minimum node count if cache data is stale
454
scaleSet.sizeMutex.Lock()
455
- scaleSet.curSize--
+ scaleSet.curSize -= int64(len(instanceIDs))
456
scaleSet.sizeMutex.Unlock()
457
458
go scaleSet.waitForDeleteInstances(future, requiredIds)
0 commit comments