-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add support for specifying the load balancer's name via annotation #1880
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
Conversation
This adds a new "aws-load-balancer-name" annotation that can be used to specify the associated load balancer's name, overriding the default name format. Some implementation notes: * This doesn't perform any input validation on the annotation value to ensure it matches the allowed naming format. I'm happy to add this but didnt see validation on any other annotation value strings. * Adding or updating the annotation on existing ingresses has no effect once a load balancer already exists.
/ok-to-test |
thanks for contributing this feature, really valuable 👍 for target-group-name, i wonder the use case to explicitly control it (it's also complicated when IngressGroup is involved). i think we can pending that until there is a real use case for control over targetGroup names. (For loadbalancer, the use case exists since the name impacts DNS name) |
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.
@rifelpet, thanks for the contribution. I appreciate your efforts on the e2e tests.
@@ -48,6 +48,7 @@ type TargetGroupHC struct { | |||
} | |||
|
|||
type LoadBalancerExpectation struct { | |||
Name *string |
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.
nit: for consistency, string instead of a pointer looks better to me
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kishorj, rifelpet 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 |
/lgtm |
…ubernetes-sigs#1880) This adds a new "aws-load-balancer-name" annotation that can be used to specify the associated load balancer's name, overriding the default name format. Some implementation notes: * This doesn't perform any input validation on the annotation value to ensure it matches the allowed naming format. I'm happy to add this but didnt see validation on any other annotation value strings. * Adding or updating the annotation on existing ingresses has no effect once a load balancer already exists.
This adds a new "aws-load-balancer-name" annotation that can be used to specify the associated load balancer's name, overriding the default name format.
Some implementation notes:
fixes #1483