mirror of https://github.com/status-im/consul.git
fix bug that resulted in generating Envoy configs that use CDS with an EDS configuration (#15140)
This commit is contained in:
parent
d3aa2bd9c5
commit
1bdad89026
|
@ -629,9 +629,15 @@ func (s *ResourceGenerator) makeGatewayOutgoingClusterPeeringServiceClusters(cfg
|
|||
// usual mesh gateway route for a service.
|
||||
clusterName := node.Service.Connect.PeerMeta.PrimarySNI()
|
||||
|
||||
var hostnameEndpoints structs.CheckServiceNodes
|
||||
if serviceGroup.UseCDS {
|
||||
hostnameEndpoints = serviceGroup.Nodes
|
||||
}
|
||||
|
||||
opts := clusterOpts{
|
||||
name: clusterName,
|
||||
isRemote: true,
|
||||
name: clusterName,
|
||||
isRemote: true,
|
||||
hostnameEndpoints: hostnameEndpoints,
|
||||
}
|
||||
cluster := s.makeGatewayCluster(cfgSnap, opts)
|
||||
|
||||
|
|
|
@ -5,14 +5,6 @@
|
|||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
||||
"name": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul",
|
||||
"type": "LOGICAL_DNS",
|
||||
"edsClusterConfig": {
|
||||
"edsConfig": {
|
||||
"ads": {
|
||||
|
||||
},
|
||||
"resourceApiVersion": "V3"
|
||||
}
|
||||
},
|
||||
"connectTimeout": "5s",
|
||||
"loadAssignment": {
|
||||
"clusterName": "alt.default.default.peer-b.external.1c053652-8512-4373-90cf-5a7f6263a994.consul",
|
||||
|
|
Loading…
Reference in New Issue