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

destination: Index pods and service with multiple IPs #11515

Merged
merged 2 commits into from
Oct 23, 2023
Merged

destination: Index pods and service with multiple IPs #11515

merged 2 commits into from
Oct 23, 2023

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Oct 19, 2023

The destination controller indexes Pods by their primary PodIP and their primary HostIP (when applicable); and it indexes Services by their primaryy ClusterIP.

In preparation for dual-stack (IPv6) support, this change updates the destination controller indexers to consume all IPs for these resources. Tests are updated to demonstrate a dual-stack setup (where these resources have a primary IPv4 address and a secondary IPv6 address).

While exercising these tests, I had to replace the brittle host:port parsing logic we use in the server, in favor of Go's standard net.SplitHostPort utility.

The destination controller indexes Pods by their primary PodIP and their
primary HostIP (when applicable); and it indexes Services by their
primaryy ClusterIP.

In preparation for dual-stack (IPv6) support, this change updates the
destination controller indexers to consume all IPs for these resources.
Tests are updated to demonstrate a dual-stack setup (where these
resources have a primary IPv4 address and a secondary IPv6 address).

While exercising these tests, I had to replace the brittle host:port
parsing logic we use in the server, in favor of Go's standard
`net.SplitHostPort` utility.
@olix0r olix0r requested a review from a team as a code owner October 19, 2023 22:49
controller/api/destination/watcher/k8s.go Outdated Show resolved Hide resolved
controller/api/destination/watcher/k8s.go Outdated Show resolved Hide resolved
@olix0r olix0r merged commit 8cd165a into main Oct 23, 2023
34 checks passed
@olix0r olix0r deleted the ver/ips branch October 23, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants