-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add a default NodeLabel with the InstanceGroup name #3783
Add a default NodeLabel with the InstanceGroup name #3783
Conversation
/retest |
@georgebuckerfield: you can't request testing unless you are a kubernetes member. In response to this:
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. |
/retest |
So I think you need to update the tests. I think the approach looks good. If we do this using this PR, this label will effectively be mandatory. Another option is to make it so that when you create an instancegroup, we auto-populate the nodeLabels in the spec. Then it would be explicit, and easily changed / removed. I do think it's a nice feature though, and labels should be additive, so I'm OK with having them always there. My bigger concern is that instance groups might well map to something in the machine API, and then we would want a different label. cc @pipejakob any thoughts on this wrt the Machines API? |
…roupSpec so that it's not mandatory
Thanks @justinsb! Yes, I'd missed that |
/ok-to-test /lgtm Looks great - thanks @georgebuckerfield |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
As requested in #2999, this change just auto-populates new InstanceGroup specs with a default node label containing the name of the instance group. It would be really useful for those of us managing environments with multiple instance groups.
It allows an admin to easily view the instance groups using kubectl: