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

[release-1.23] networking: match multiple VIPs in sidecar outbound listener #52249

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

jewertow
Copy link
Member

@jewertow jewertow commented Jul 23, 2024

Please provide a description of this PR:

This is a manual cherry-pick of #51967, because the automated one can't be merged due to a conflict.

…1967)

* networking: match multiple addresses in sidecar outbound listener

Signed-off-by: Jacek Ewertowski <[email protected]>

* Add unit tests for GetAllAddressesForProxy

Signed-off-by: Jacek Ewertowski <[email protected]>

* Refactor buildSidecarOutboundListener

Signed-off-by: Jacek Ewertowski <[email protected]>

* Add an integration test

Signed-off-by: Jacek Ewertowski <[email protected]>

* Add a release note

Signed-off-by: Jacek Ewertowski <[email protected]>

* Refactor GetAllAddressesForProxy

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix linter error

Signed-off-by: Jacek Ewertowski <[email protected]>

* Revert removal svcExtraListenAddresses variable

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix unit tests

Signed-off-by: Jacek Ewertowski <[email protected]>

* Refactoring

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix TestEDSOverlapping

Signed-off-by: Jacek Ewertowski <[email protected]>

* Skip testServiceEntryWithMultipleVIPs in ambient mode

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix TestEDSUnhealthyEndpoints

Signed-off-by: Jacek Ewertowski <[email protected]>

* Add test case for ServiceEntry with resolution NONE and multiple VIPs

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix lint error

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix linter errors

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix lint error

Signed-off-by: Jacek Ewertowski <[email protected]>

* Generate service with all ports

Signed-off-by: Jacek Ewertowski <[email protected]>

* do not create service instance for each hostname/address pair

Signed-off-by: Jacek Ewertowski <[email protected]>

* Refactor GetExtraAddressesForProxy and revert removal of its usage from buildSidecarOutboundListener

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix listenerBindings.Extra()

Signed-off-by: Jacek Ewertowski <[email protected]>

* Handle IPv6 prefix length

Signed-off-by: Jacek Ewertowski <[email protected]>

* Check address' family only if a proxy supports given family

Signed-off-by: Jacek Ewertowski <[email protected]>

* Update a comment

Signed-off-by: Jacek Ewertowski <[email protected]>

* Refactor getAllAddressesForProxy

Signed-off-by: Jacek Ewertowski <[email protected]>

---------

Signed-off-by: Jacek Ewertowski <[email protected]>
@jewertow jewertow requested a review from a team as a code owner July 23, 2024 08:05
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 23, 2024
@jewertow
Copy link
Member Author

/retest

@jewertow
Copy link
Member Author

@thedebugger can you approve?

Copy link
Member

@mikemorris mikemorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving per 👍 in Slack from @howardjohn @ilrudie

@jewertow
Copy link
Member Author

/retest

@istio-testing istio-testing merged commit c0374b8 into istio:release-1.23 Jul 23, 2024
28 checks passed
howardjohn added a commit to howardjohn/istio that referenced this pull request Sep 4, 2024
howardjohn added a commit to howardjohn/istio that referenced this pull request Sep 4, 2024
istio-testing pushed a commit that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants