Re-add comment on connect-proxy virtual hosts

This commit is contained in:
Chris Piraino 2020-05-01 09:31:23 -05:00
parent 26533dcb09
commit d8ac79041d
1 changed files with 5 additions and 2 deletions

View File

@ -55,8 +55,11 @@ func routesFromSnapshotConnectProxy(cfgSnap *proxycfg.ConfigSnapshot) ([]proto.M
} }
route := &envoy.RouteConfiguration{ route := &envoy.RouteConfiguration{
Name: upstreamID, Name: upstreamID,
VirtualHosts: []envoyroute.VirtualHost{virtualHost}, VirtualHosts: []envoyroute.VirtualHost{virtualHost},
// ValidateClusters defaults to true when defined statically and false
// when done via RDS. Re-set the sane value of true to prevent
// null-routing traffic.
ValidateClusters: makeBoolValue(true), ValidateClusters: makeBoolValue(true),
} }
resources = append(resources, route) resources = append(resources, route)