backport of commit bf691461a0 (#15152)

This pull request was automerged via backport-assistant
pull/15161/head
hc-github-team-consul-core 2 years ago committed by GitHub
parent 1ba62825ba
commit d5533bd8e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -629,9 +629,15 @@ func (s *ResourceGenerator) makeGatewayOutgoingClusterPeeringServiceClusters(cfg
// usual mesh gateway route for a service. // usual mesh gateway route for a service.
clusterName := node.Service.Connect.PeerMeta.PrimarySNI() clusterName := node.Service.Connect.PeerMeta.PrimarySNI()
var hostnameEndpoints structs.CheckServiceNodes
if serviceGroup.UseCDS {
hostnameEndpoints = serviceGroup.Nodes
}
opts := clusterOpts{ opts := clusterOpts{
name: clusterName, name: clusterName,
isRemote: true, isRemote: true,
hostnameEndpoints: hostnameEndpoints,
} }
cluster := s.makeGatewayCluster(cfgSnap, opts) cluster := s.makeGatewayCluster(cfgSnap, opts)

@ -5,14 +5,6 @@
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", "@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
"name": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul", "name": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul",
"type": "LOGICAL_DNS", "type": "LOGICAL_DNS",
"edsClusterConfig": {
"edsConfig": {
"ads": {
},
"resourceApiVersion": "V3"
}
},
"connectTimeout": "5s", "connectTimeout": "5s",
"loadAssignment": { "loadAssignment": {
"clusterName": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul", "clusterName": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul",

Loading…
Cancel
Save