-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Ambiguity when checking for existence of Backend SGs #3953
Comments
Hey @visit1985 , While configuring the backend sg, the LBC uses a shared backend SG for all the resources which it creates once and applies these tags. So the customer should avoid to use the same tag for other sgs. More info on SG management : https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/deploy/security_groups/#backend-security-groups |
Yes, right. But even the it’s better to fail instead if using a random SG via |
@visit1985 |
Yes, someone created it during preparation to migrate to command line flag Adding a raise condition for |
When searching for the existence of backend SGs, the controller searches by tags and does not consider the case where multiple SGs with that tags are returned.
To avoid ambiguity, the below function should either search by SG name (which is already present as an input parameter), or return an error when multiple SGs with the given tags are found.
aws-load-balancer-controller/pkg/networking/backend_sg_provider.go
Lines 284 to 310 in 8ba34e2
The text was updated successfully, but these errors were encountered: