-
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
[feat] allow multiple targetgroupbindings to reference same tg arn if using multicluster mode #4021
[feat] allow multiple targetgroupbindings to reference same tg arn if using multicluster mode #4021
Conversation
6d1a33c
to
d118858
Compare
/ok-to-test |
d118858
to
d00b175
Compare
@@ -72,6 +73,9 @@ func (v *targetGroupBindingValidator) ValidateCreate(ctx context.Context, obj ru | |||
if err := v.checkAssumeRoleConfig(tgb); err != nil { | |||
return err | |||
} | |||
if err := v.checkExistingTargetGroups(tgb); err != nil { |
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.
checkExistingTargetGroups
is being called twice, which is not need ?
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.
bad rebase on my part.
…multi cluster mode
d00b175
to
92ae3dc
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shraddhabang, wweiwei-li, zac-nixon 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 |
Issue
n/a
Description
Users would like to utilize the same Target Group ARN for multiple TargetGroupBindings. Previously, before Multicluster support, this was not possible as the reconcile logic would be unaware of other entities registering targets into the configured Target Group. Now, using Multicluster TargetGroupBindings, the reconcile logic is able to only operate on targets in the Target Group that belong to the specified TargetGroupBinding.
We can relax the validation logic to allow users to specify duplicate Target Group ARNs if they also specify the Multicluster flag on each binding.
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯