Repository navigation
add source nat setting so udp tests pass on ipv6 cluster - #4795
Merged
Merged
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shraddhabang, zac-nixon 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4795 +/- ##
==========================================
+ Coverage 57.08% 57.31% +0.23%
==========================================
Files 396 396
Lines 31572 31583 +11
==========================================
+ Hits 18022 18101 +79
+ Misses 12492 12418 -74
- Partials 1058 1064 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jupdec
added a commit
to jupdec/aws-load-balancer-controller
that referenced
this pull request
Aug 31, 2026
AWS enforces preserve_client_ip.enabled=true for UDP and TCP_UDP target groups (`ModifyTargetGroupAttributes` returns InvalidConfigurationRequest for false, verified against a live IP-target UDP TG). With preserved client IP, the udp-echoserver backend replies to the actual client address instead of routing back through the NLB, so the client's socket drops the reply and the test times out. The IPv6 workaround in configureIPv6SourceNAT (kubernetes-sigs#4795) sets SourceNatIPv6Prefix on the LB subnets so replies still transit the NLB. The LoadBalancerConfiguration CRD has no IPv4 sibling for that field yet, so there is no equivalent hook available on IPv4 clusters. Wrap the UDP verification with a helper that no-ops when IPFamily is not IPv6. This turns the six NLB UDP assertions into pass-through skips on IPv4 so the surrounding TCP and cross-namespace flow can be exercised. Remove this shim once SourceNatIpv4Prefix lands in the CRD and configureIPv6SourceNAT is generalised to cover IPv4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Any test that uses a UDP listener fails on an ipv6 cluster, the root cause is that we need to allow for source nating, otherwise the ELB API rejects the configuration. We have to set this value for all subnets in the LB [this is a crazy API setting]. In order to calculate the number of subnets to set the source nat value for, we calculate the unique AZs in the cluster.
Checklist
README.md, or thedocsdirectory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯