-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[feat] allow multiple targetgroupbindings to reference same tg arn if using multicluster mode #4021
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
Conversation
6d1a33c
to
d118858
Compare
/ok-to-test |
d118858
to
d00b175
Compare
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 |
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.
This is a breaking change, that wasn't mentioned in release notes.
We have a cluster with two TGBs with duplicate target group. (Yes, it is wrong, but it worked with 2.10)
Previously, this was checked only on Create. So reconcile worked OK.
Now, this is checked on Update too, so both TGBs are invalid and no reconcile is done.
While I agree that the root problem is actually the duplicate TG, this is a breaking change that we didn't expect when upgrading.
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?! 🤯