Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move DisableScaleDownForLoop to the scaleUp loop
When running the autoscaler with `--max-nodes-total` set and that max is reached downscale is disabled when new unschedulable pods are added. Preventing the removal of nodes. If pods are created very frequently by let's say a cronjob, the cluster will never be able to downscale. In order to fix that behavior i moved the downscale lock from the process to the actual place where scale-up happens.
- Loading branch information