-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add support to disable cluster tag check during subnet auto-discovery #2635
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 support to disable cluster tag check during subnet auto-discovery #2635
Conversation
Hi @oliviassss. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to so similar for NLB as well.
And some nit comments
93540be
to
8c02ffd
Compare
Codecov Report
@@ Coverage Diff @@
## main #2635 +/- ##
==========================================
+ Coverage 53.96% 53.99% +0.03%
==========================================
Files 144 144
Lines 8202 8214 +12
==========================================
+ Hits 4426 4435 +9
- Misses 3458 3461 +3
Partials 318 318
Continue to review full report at Codecov.
|
/ok-to-test |
8a87d46
to
24ac551
Compare
24ac551
to
ee664e5
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kishorj, oliviassss 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 |
…kubernetes-sigs#2635) * rebase main * update * doc update * add support on NLB side
Issue
Description
Add a feature gate
SubnetsClusterTagCheck
to enable/disable the check for cluster tagkubernetes.io/cluster/${cluster-name}
during subnet auto-discovery, with default value totrue
. When set tofalse
, the subnets do not have to be tagged for current cluster.This flag is to solve the user case that for EKS 1.19 and later versions, EKS stops adding the cluster tag
kubernetes.io/cluster/{cluster-name}
to subnets. For customer reusing the subnets for new 1.19 and later versions, the subnets will not be tagged for new clusters, so the subnets gets ignored during auto-discovery. In this case they can disable the cluster tag check so they do not need to tag the subnets for current cluster manually.Tests
SubnetsClusterTagCheck=true
, created ALB and NLB with 2 subnets in the same AZ (1 tagged for current cluster, 1 tagged for other cluster), verified that the subnet tagged for current cluster got precedence.SubnetsClusterTagCheck=false
, created ALB and NLB with 2 subnets (both tagged for other clusters), verified the subnet got discovered by the order of subnet_id.SubnetsClusterTagCheck=false
, created ALB and NLB with 2 subnets (both contained no cluster tag at all), verified the subnet got discovered by the order of subnet_id.SubnetsClusterTagCheck=false
, created ALB and NLB with 2 subnets (1 tagged for current cluster, 1 tagged for other cluster), verified the subnet tagged for current cluster still got precedence.Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯