Repository navigation
fix: subnet auto-discovery to IPv6-capable subnets for dualstack ip address type - #4865
Conversation
|
Hi @jupdec. 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. |
|
/ok-to-test |
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jupdec, shraddhabang, wweiwei-li The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/approved |
be07133 to
c87e16e
Compare
|
/lgtm |
Issue
Fixes #4852
Description
Subnet auto-discovery never received the load balancer's ipAddressType, so nothing checked Ipv6CidrBlockAssociationSet. A dualstack LB relying on discovery could be handed subnets with no IPv6 CIDR, and ELBv2 rejected the create call with:
Being a shared resolver defect, this affected ALB Ingress, NLB Services, the Ingress frontend-NLB feature and Gateway alike.
Thread ipAddressType to the resolver via a new WithSubnetsResolveLBIPAddressType option and apply the missing criterion:
IPv4 load balancers are unaffected and their failure message is unchanged. An IPv6 CIDR must be in the "associated" state to count.
Case1: When VPC has subnets with Ipv6 CIDRs, if ALB/NLB ip address type is dualstack auto subnet discovery resolves successfully
Case2: When no subnets have any Ipv6 CIDRs available, error logging bubbles up this message
Case3: When subnets are explicitly specified and none have Ipv6 CIDRs, validation fails early naming the offending subnets
Checklist
README.md, or thedocsdirectory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯