Skip to content
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

listen on ipv4 addresses by default #4817

Merged
merged 1 commit into from
Nov 30, 2024
Merged

Conversation

arkodg
Copy link
Contributor

@arkodg arkodg commented Nov 29, 2024

  • listen on :: if the listener IPFamily is IPv6 or DualStack
  • Set ipv4_compat to true if IPFamily is DualStack

* listen on `::` if the listener IPFamily is `IPv6` or `DualStack`
* Set `ipv4_compat` to `true` if `IPFamily` is `DualStack`

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg requested a review from a team as a code owner November 29, 2024 17:35
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 65.61%. Comparing base (526a05f) to head (5099544).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/listener.go 40.00% 2 Missing and 1 partial ⚠️
internal/gatewayapi/helpers.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4817   +/-   ##
=======================================
  Coverage   65.60%   65.61%           
=======================================
  Files         211      211           
  Lines       31982    31999   +17     
=======================================
+ Hits        20983    20997   +14     
- Misses       9758     9760    +2     
- Partials     1241     1242    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zirain
Copy link
Member

zirain commented Nov 30, 2024

will this make ipv6 test failed without additional IPFamily in EnvoyProxy?

@arkodg
Copy link
Contributor Author

arkodg commented Nov 30, 2024

will this make ipv6 test failed without additional IPFamily in EnvoyProxy?

Yes we'll need to explicitly set IPFamily in EnvoyProxy for the ipv6 test

@zirain zirain merged commit d1a8c47 into envoyproxy:main Nov 30, 2024
23 of 24 checks passed
zhaohuabing pushed a commit to zhaohuabing/gateway that referenced this pull request Nov 30, 2024
* listen on `::` if the listener IPFamily is `IPv6` or `DualStack`
* Set `ipv4_compat` to `true` if `IPFamily` is `DualStack`

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
(cherry picked from commit d1a8c47)
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
zhaohuabing added a commit that referenced this pull request Nov 30, 2024
* xds: use IPv4Compat on ready server (#4798)

Signed-off-by: zirain <zirain2009@gmail.com>
(cherry picked from commit 9f9de74)
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* xds: use `::1`  if IPFamily is IPv6 on admin server (#4801)

xds: use  if IPFamily is IPv6

Signed-off-by: zirain <zirain2009@gmail.com>
(cherry picked from commit 17e932c)
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* listen on ipv4 addresses by default (#4817)

* listen on `::` if the listener IPFamily is `IPv6` or `DualStack`
* Set `ipv4_compat` to `true` if `IPFamily` is `DualStack`

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
(cherry picked from commit d1a8c47)
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

---------

Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Co-authored-by: zirain <zirain2009@gmail.com>
Co-authored-by: Arko Dasgupta <arkodg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants