feat: add ipv4/ipv6 dual stack support#4375
Conversation
020d3e9 to
14062cf
Compare
|
hey @juwon8891 we probably also need to add some logic in gateway/internal/gatewayapi/route.go Line 1328 in 4b8c2f5 |
There was a problem hiding this comment.
can we also check for the IP type in the X-Forwarded-For response header ?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4375 +/- ##
==========================================
+ Coverage 65.78% 65.80% +0.02%
==========================================
Files 210 210
Lines 31516 31557 +41
==========================================
+ Hits 20732 20766 +34
- Misses 9588 9594 +6
- Partials 1196 1197 +1 ☔ View full report in Codecov by Sentry. |
|
hey @juwon8891 lint is failing |
263b8bf to
b97d58a
Compare
|
hey @juwon8891 looks like some gateway api tests got wiped out, can you add them back ? |
|
@juwon8891 Do you have time to address the comments this week? We want to ensure dual stack support is ready to be included in the coming v1.2. |
|
Yes, I'm working on it. I'll answer as soon as possible |
There was a problem hiding this comment.
gateway/test/e2e/tests/utils.go
Line 535 in 4b8c2f5
can be used to verify pod ip/port
There was a problem hiding this comment.
I'm still working on this test part. I'll post it separately as another PR.
|
hey @juwon8891, added some minor comments, but overall LGTM ! |
|
@juwon8891 please run |
internal/ir/xds.go
Outdated
There was a problem hiding this comment.
can you make it a pointer? so that this PR won't be that huge.
There was a problem hiding this comment.
I'll post it separately as another PR.
|
@juwon8891 DCO is failing, can you sign your commits |
Signed-off-by: Juwon Hwang (Kevin) <juwon8891@gmail.com>
Signed-off-by: Juwon Hwang (Kevin) <juwon8891@gmail.com>
Signed-off-by: Juwon Hwang (Kevin) <juwon8891@gmail.com>
Signed-off-by: Juwon Hwang (Kevin) <juwon8891@gmail.com>
Signed-off-by: Juwon Hwang (Kevin) <juwon8891@gmail.com>
|
/retest |
What type of PR is this?
feat: add ipv4/ipv6 dual stack support
What this PR does / why we need it:
This PR adds IPv4/IPv6 dual stack support to Envoy Gateway. It implements test cases for routing to IPv6-only, dual-stack, and IPv4-only services using HTTPRoute resources. This enhancement is crucial for supporting modern network environments and ensuring compatibility with both IPv4 and IPv6 infrastructures.
Key changes include:
backend_dualstack.gofor testing IPv6 and dual-stack backendshttproute_dualstack.gofor testing HTTPRoute support with various IP versionsgetDnsLookupFamilyfunction to control DNS lookup behaviorWhich issue(s) this PR fixes:
Fixes #184
Additional Notes:
IP_FAMILY=ipv4)IP_FAMILY=ipv6orIP_FAMILY=dual)