-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Check ASG name list not empty #280
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
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Had to sign CLA |
|
cc: @mumoshu |
|
@JoelSpeed Thank you very much for your efforts! I agree to the approch you've chosen from the three alternatives. The change LGTM.
I agree with you here, too. Although I also like it as a longer term improvement, it should be an another story as you've noted. |
|
@mwielgus I'd appreciate it if you could release a new version of CA with this fix, probably by bumping the patch number, v0.6.1? |
|
@mumoshu Yes, we can release it (as 0.6.2). Thanks for reviewing. |
|
/lgtm |
|
@mwielgus Any chance you could release this as 0.6.2? 😉 |
Fixes #278
I have built and tested this on one of our clusters.
If no autoscaling group matches both tags, the autoscaler exits and is restarted by kubernetes.
As soon as one ASG matches both tags, CA will stay up and run as designed. If this group is then removed (by changing the tags as described in the issue), then CA will also exit and get into a restart loop as above.
I considered returning an empty list of ASGs, but I believe this isn't the correct approach. If you return an empty list of ASGs then CA will continue through it's working process and only when it gets to the point where it wants to scale up or scale down will it fail. I feel users would prefer to know CA can't do anything earlier than this.
I also considered the fact that maybe CA should just emit a message and keep running and keep trying to build the cloudprovider on an interval so that it doesn't constantly restart the container (given it's run as a deployment, it will be in constant crash loops), but this requires discussion and is beyond the scope of this PR.