Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore the node-group with maxSize set to 0 #39

Merged
merged 1 commit into from
May 4, 2020

Conversation

hardikdr
Copy link
Member

@hardikdr hardikdr commented May 4, 2020

What this PR does / why we need it: This PR ignores the node-group with maxSize set to zero.
Earlier autoscaler could not scale-up the healthy worker-pool if there exists another worker-pool with min=max=0.

  • This happened, as autoscaler tried to find the NodeTemplate of the 0:0 worker pool, but as NodeTemplateInfo is not implemented for all providers, it used to fail for providers other than AWS and Azure. This failure blocks the scale-up for other healthy worker-pools as well, due to the nature of CA.

With this change, we simply ignore the worker-pools which have maxSize set to 0.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Cluster Autoscaler ignores the worker pools with maxSize set to 0.

@hardikdr hardikdr requested a review from prashanth26 as a code owner May 4, 2020 05:25
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label May 4, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels May 4, 2020
@hardikdr hardikdr merged commit da117fa into gardener:machine-controller-manager May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants