consul/agent/xds
R.B. Boyer b2d17ac448
xds: fix representation of incremental xDS subscriptions (#10987)
Fixes #10563

The `resourceVersion` map was doing two jobs prior to this PR. The first job was
to track what version of every resource we know envoy currently has. The
second was to track subscriptions to those resources (by way of the empty
string for a version). This mostly works out fine, but occasionally leads to
consul removing a resource and accidentally (effectively) unsubscribing at the
same time.

The fix separates these two jobs. When all of the resources for a subscription
are removed we continue to track the subscription until envoy explicitly
unsubscribes
2021-09-21 09:58:56 -05:00
..
proxysupport connect: update envoy supported versions to latest patch release 2021-08-31 10:39:18 -06:00
testdata Header manip for split legs plumbing 2021-09-10 21:09:24 +01:00
clusters.go Ensure partition is used for SAN validation 2021-09-15 17:23:48 -06:00
clusters_test.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
config.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
config_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
delta.go xds: fix representation of incremental xDS subscriptions (#10987) 2021-09-21 09:58:56 -05:00
delta_test.go xds: fix representation of incremental xDS subscriptions (#10987) 2021-09-21 09:58:56 -05:00
endpoints.go add partition to SNI when partition is non default (#10917) 2021-09-01 10:35:39 -04:00
endpoints_test.go connect: update supported envoy versions to 1.18.2, 1.17.2, 1.16.3, and 1.15.4 (#10101) 2021-04-29 15:22:03 -05:00
envoy_versioning.go connect: update supported envoy versions to 1.18.2, 1.17.2, 1.16.3, and 1.15.4 (#10101) 2021-04-29 15:22:03 -05:00
envoy_versioning_test.go connect: update envoy supported versions to latest patch release 2021-08-31 10:39:18 -06:00
failover_math.go xds: default to speaking xDS v3, but allow for v2 to be spoken upon request (#9658) 2021-02-26 16:23:15 -06:00
failover_math_test.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
golden_test.go xds: default to speaking xDS v3, but allow for v2 to be spoken upon request (#9658) 2021-02-26 16:23:15 -06:00
listeners.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
listeners_test.go partition dicovery chains (#10983) 2021-09-07 16:29:32 -04:00
naming.go
net_fallback.go xds: only try to create an ipv6 expose checks listener if ipv6 is supported by the kernel (#9765) 2021-02-19 14:38:43 -06:00
net_linux.go xds: only try to create an ipv6 expose checks listener if ipv6 is supported by the kernel (#9765) 2021-02-19 14:38:43 -06:00
protocol_trace.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
rbac.go Update spiffe ID patterns used for RBAC 2021-09-14 11:00:03 -06:00
rbac_test.go Expand testing of simplifyNotSourceSlice for partitions 2021-09-14 10:55:15 -06:00
resources.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
response.go Continue working through proxy and agent 2021-05-04 12:41:43 -07:00
routes.go Header manip for split legs plumbing 2021-09-10 21:09:24 +01:00
routes_test.go Ingress gateway header manip plumbing 2021-09-10 21:09:24 +01:00
server.go xds: fix representation of incremental xDS subscriptions (#10987) 2021-09-21 09:58:56 -05:00
server_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
server_test.go xds: emit a labeled gauge of connected xDS streams by version (#10243) 2021-05-14 13:59:13 -05:00
testing.go xds: adding more delta protocol tests (#10398) 2021-06-15 15:21:07 -05:00
version_compat.go connect: update supported envoy versions to 1.18.2, 1.17.2, 1.16.3, and 1.15.4 (#10101) 2021-04-29 15:22:03 -05:00
xds.go Remove unused customEDSClusterJSON 2020-03-27 15:38:16 -04:00
xds_protocol_helpers_test.go xds: fix representation of incremental xDS subscriptions (#10987) 2021-09-21 09:58:56 -05:00
z_xds_packages.go xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary (#10131) 2021-04-29 14:58:26 -05:00
z_xds_packages_test.go xds: ensure that all envoyproxy/go-control-plane protobuf symbols are linked into the final binary (#10131) 2021-04-29 14:58:26 -05:00