From 62ad0294d492bf824ef1ddd3c4f3f374b8189f93 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Wed, 3 Jul 2019 09:59:21 -0400 Subject: [PATCH] Don't use WatchedDatacenters in the xds code as thsoe get nil'ed out prior to sending to xds --- agent/xds/listeners.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/xds/listeners.go b/agent/xds/listeners.go index f40c212a82..4abeb88a52 100644 --- a/agent/xds/listeners.go +++ b/agent/xds/listeners.go @@ -323,7 +323,7 @@ func (s *Server) makeGatewayListener(name, addr string, port int, cfgSnap *proxy // TODO (mesh-gateway) - Do we need to create clusters for all the old trust domains as well? // We need 1 Filter Chain per datacenter - for dc := range cfgSnap.MeshGateway.WatchedDatacenters { + for dc := range cfgSnap.MeshGateway.GatewayGroups { clusterName := DatacenterSNI(dc, cfgSnap) filterName := fmt.Sprintf("%s_%s", name, dc) dcTCPProxy, err := makeTCPProxyFilter(filterName, clusterName, "mesh_gateway_remote_")