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

Remove instance-selector label #11048

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

bharath-123
Copy link
Contributor

kops toolbox instance-selector fails due to #10910 which improves the label validation. Making kops.k8s.io/instance-selector: "1" a node label rather than a cloud label should bypass this validation check. I also think it should make more sense to make it a node label rather than a cloud label.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 14, 2021
@@ -501,10 +501,10 @@ func decorateWithMixedInstancesPolicy(instanceGroup *kops.InstanceGroup, usageCl
}

generatedWithLabelKey := "kops.k8s.io/instance-selector"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olemarkus what do you think, should we remove this completely?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intention for this label was to show infrastructure operators within the AWS console that the group was generated with instance selector. I thought it would be more helpful as a real tag rather than a node label for that reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i understand @bwagner5 . Curious to know why that info will be useful for operators?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwagner5 would it cause any issues if this label was removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, I guess it's not too useful. I was thinking it would be nice to know which ones were generated with instance-selector in-case there were instance types that weren't actually fit for the compute nodes that were getting included. But I suppose it doesn't really matter since you can just hand modify the list.

@rifelpet
Copy link
Member

/cc @bwagner5

@k8s-ci-robot
Copy link
Contributor

@rifelpet: GitHub didn't allow me to request PR reviews from the following users: bwagner5.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @bwagner5

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.

@hakman hakman changed the title Make instance-selector label a node label rather than a cloud label Remove instance-selector label Mar 24, 2021
Copy link
Member

@hakman hakman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks everyone for the feedback!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 24, 2021
@bharath-123
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

k8s-ci-robot added a commit that referenced this pull request Mar 24, 2021
…-upstream-release-1.19

Automated cherry pick of #11048: remove instance-selector label
k8s-ci-robot added a commit that referenced this pull request Mar 24, 2021
…-upstream-release-1.20

Automated cherry pick of #11048: remove instance-selector label
@k8s-ci-robot k8s-ci-robot merged commit 155b765 into kubernetes:master Mar 24, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/office-hours 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.

None yet

5 participants