Skip to content

Conversation

@JoelSpeed
Copy link
Contributor

@JoelSpeed JoelSpeed commented Aug 30, 2017

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.

@k8s-ci-robot
Copy link
Contributor

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.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please sign in with your organization's credentials at https://identity.linuxfoundation.org/projects/cncf to be authorized.
  • If you have done the above and are still having issues with the CLA being reported as unsigned, please email the CNCF helpdesk: [email protected]

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 30, 2017
@JoelSpeed
Copy link
Contributor Author

Had to sign CLA

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Aug 30, 2017
@mwielgus
Copy link
Contributor

cc: @mumoshu

@mumoshu
Copy link
Contributor

mumoshu commented Aug 30, 2017

@JoelSpeed Thank you very much for your efforts!

I agree to the approch you've chosen from the three alternatives. The change LGTM.

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

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.

@mumoshu
Copy link
Contributor

mumoshu commented Aug 30, 2017

@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?

@mwielgus
Copy link
Contributor

@mumoshu Yes, we can release it (as 0.6.2). Thanks for reviewing.

@mwielgus
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2017
@mwielgus mwielgus merged commit 4a3b293 into kubernetes:master Aug 30, 2017
@mumoshu
Copy link
Contributor

mumoshu commented Oct 19, 2017

@mwielgus Any chance you could release this as 0.6.2? 😉
As of today, perhaps we have to upgrade K8S to 1.8.x to use the only release exists with this fix included(=CA 1.0)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants