consul/agent/proxycfg
Daniel Upton 50a1f20ff9
xds: prefer fed state gateway definitions if they're fresher (#11522)
Fixes an issue described in #10132, where if two DCs are WAN federated
over mesh gateways, and the gateway in the non-primary DC is terminated
and receives a new IP address (as is commonly the case when running them
on ephemeral compute instances) the primary DC is unable to re-establish
its connection until the agent running on its own gateway is restarted.

This was happening because we always preferred gateways discovered by
the `Internal.ServiceDump` RPC (which would fail because there's no way
to dial the remote DC) over those discovered in the federation state,
which is replicated as long as the primary DC's gateway is reachable.
2021-11-09 16:45:36 +00:00
..
connect_proxy.go structs: rename the last helper method. 2021-09-29 11:48:38 -04:00
ingress_gateway.go Add support for enabling connect-based ingress TLS per listener. 2021-10-19 20:58:28 +01:00
manager.go agent: ensure that most agent behavior correctly respects partition configuration (#10880) 2021-08-19 15:09:42 -05:00
manager_test.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
mesh_gateway.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
mesh_gateway_oss.go Update mesh gateway proxy watches for partitions 2021-10-27 09:03:56 -06:00
proxycfg.go Proxy Config Manager (#4729) 2018-10-10 16:55:34 +01:00
snapshot.go Exclude default partition from GatewayKey string 2021-11-01 14:45:52 -06:00
state.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
state_test.go Exclude default partition from GatewayKey string 2021-11-01 14:45:52 -06:00
terminating_gateway.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
testing.go xds: prefer fed state gateway definitions if they're fresher (#11522) 2021-11-09 16:45:36 +00:00
upstreams.go Update locality check in proxycfg 2021-11-01 13:58:53 -06:00