You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix listener addr duplication for dualStack svc with IPv6 as primary (istio#56151) (istio#56181)
* Fix listener addr duplication for dualStack svc with IPv6 as primary
When a dual-stack service is configured with ipFamilies: [IPv6, IPv4],
the listener ends up using the same IPv4 address for both address and
additionalAddress (ignoring the IPv6 address). This happens because
GetAddressForProxy() (via filterAddresses method) prioritizes IPv4
over IPv6, and GetExtraAddressesForProxy() also returns the same IPv4
address from the service. This PR modifies the filterAddresses to
return the addresses based on the firstAddrFamily.
* Add validation when addresses is empty
* Add unit tests for GetAddressForProxy method
---------
(cherry picked from commit 1bc024b)
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
0 commit comments