Reconcile listener rule tags for all matched rules#4772
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: andreybutenko The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @andreybutenko. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
Reconcile listener rule tags for all matched rules
Motivation
In some cases, listener rule tags would not be updated after
alb.ingress.kubernetes.io/tagsis changed.Specifically:
synthesizeListenerRulesOnListenerfunction only calledUpdateRulesTagsfor listener rules where the settings (condition/action/transform) match but priority differs.UpdateRulesTagsfor 1/ listener rules where the settings and priority both match or 2/ listener rules where the settings don't match but the priority does.Details
matchResAndSDKListenerRulesto returnmatchedResAndSDKLRsFullyMatchedfor fully-matched listener rules that only need tag reconciliationsynthesizeListenerRulesOnListenerto also reconcile tags formatchedResAndSDKLRsFullyMatchedandmatchedResAndSDKLRsByPriorityTesting
Unit tests pass
Checklist
README.md, or thedocsdirectory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯