|
|
|
@ -98,7 +98,8 @@ func (s *ResourceGenerator) clustersFromSnapshotConnectProxy(cfgSnap *proxycfg.C
|
|
|
|
|
upstream := cfgSnap.ConnectProxy.UpstreamConfig[uid] |
|
|
|
|
|
|
|
|
|
explicit := upstream.HasLocalPortOrSocket() |
|
|
|
|
if _, implicit := cfgSnap.ConnectProxy.IntentionUpstreams[uid]; !implicit && !explicit { |
|
|
|
|
implicit := cfgSnap.ConnectProxy.IsImplicitUpstream(uid) |
|
|
|
|
if !implicit && !explicit { |
|
|
|
|
// Discovery chain is not associated with a known explicit or implicit upstream so it is skipped.
|
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
@ -129,13 +130,12 @@ func (s *ResourceGenerator) clustersFromSnapshotConnectProxy(cfgSnap *proxycfg.C
|
|
|
|
|
// NOTE: Any time we skip an upstream below we MUST also skip that same
|
|
|
|
|
// upstream in endpoints.go so that the sets of endpoints generated matches
|
|
|
|
|
// the sets of clusters.
|
|
|
|
|
//
|
|
|
|
|
// TODO(peering): make this work for tproxy
|
|
|
|
|
for _, uid := range cfgSnap.ConnectProxy.PeeredUpstreamIDs() { |
|
|
|
|
upstreamCfg := cfgSnap.ConnectProxy.UpstreamConfig[uid] |
|
|
|
|
|
|
|
|
|
explicit := upstreamCfg.HasLocalPortOrSocket() |
|
|
|
|
if _, implicit := cfgSnap.ConnectProxy.IntentionUpstreams[uid]; !implicit && !explicit { |
|
|
|
|
implicit := cfgSnap.ConnectProxy.IsImplicitUpstream(uid) |
|
|
|
|
if !implicit && !explicit { |
|
|
|
|
// Not associated with a known explicit or implicit upstream so it is skipped.
|
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
|