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

Pull virtual IPs for filter chains from discovery chains #17375

Merged
merged 1 commit into from
May 17, 2023

Conversation

kyhavlov
Copy link
Contributor

This PR is a follow-up to previous work that adds logic in xds to pull virtual IPs from discovery chains - including both auto-assigned and manually set (such as cluster IPs via kubernetes).

@kyhavlov kyhavlov added pr/no-changelog PR does not need a corresponding .changelog entry pr/no-metrics-test pr/no-docs PR does not include docs and should not trigger reminder for cherrypicking them. pr/no-backport labels May 15, 2023
@kyhavlov kyhavlov requested a review from hashi-derek May 15, 2023 19:11
@github-actions github-actions bot added the theme/envoy/xds Related to Envoy support label May 15, 2023
@kyhavlov kyhavlov force-pushed the NET-2617/xds-discovery-chain-vips branch 2 times, most recently from 27e38ec to a9a5d97 Compare May 16, 2023 19:16
@@ -232,6 +232,15 @@ func (s *ResourceGenerator) listenersFromSnapshotConnectProxy(cfgSnap *proxycfg.
// We do not match on all endpoints here since it would lead to load balancing across
// all instances when any instance address is dialed.
for _, e := range endpoints {
if chain.Partition == e.Service.PartitionOrDefault() {
Copy link
Member

Choose a reason for hiding this comment

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

Ignore my last approval. In failover scenarios (where there may be zero endpoints), this would remove the chain's VIP from the config, right? So we should probably hoist the attachment of the chain outside of this loop.

Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this logic here if the code above is always attaching the VIPs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how that got left in, it's gone now

@kyhavlov kyhavlov force-pushed the NET-2617/xds-discovery-chain-vips branch from a9a5d97 to f479922 Compare May 16, 2023 21:45
@kyhavlov kyhavlov force-pushed the NET-2617/xds-discovery-chain-vips branch from f479922 to 99d5b0c Compare May 17, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-backport pr/no-changelog PR does not need a corresponding .changelog entry pr/no-docs PR does not include docs and should not trigger reminder for cherrypicking them. pr/no-metrics-test theme/envoy/xds Related to Envoy support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants