open-consul/agent/xds
R.B. Boyer 91bee6246f
Support Incremental xDS mode (#9855)
This adds support for the Incremental xDS protocol when using xDS v3. This is best reviewed commit-by-commit and will not be squashed when merged.

Union of all commit messages follows to give an overarching summary:

xds: exclusively support incremental xDS when using xDS v3

Attempts to use SoTW via v3 will fail, much like attempts to use incremental via v2 will fail.
Work around a strange older envoy behavior involving empty CDS responses over incremental xDS.
xds: various cleanups and refactors that don't strictly concern the addition of incremental xDS support

Dissolve the connectionInfo struct in favor of per-connection ResourceGenerators instead.
Do a better job of ensuring the xds code uses a well configured logger that accurately describes the connected client.
xds: pull out checkStreamACLs method in advance of a later commit

xds: rewrite SoTW xDS protocol tests to use protobufs rather than hand-rolled json strings

In the test we very lightly reuse some of the more boring protobuf construction helper code that is also technically under test. The important thing of the protocol tests is testing the protocol. The actual inputs and outputs are largely already handled by the xds golden output tests now so these protocol tests don't have to do double-duty.

This also updates the SoTW protocol test to exclusively use xDS v2 which is the only variant of SoTW that will be supported in Consul 1.10.

xds: default xds.Server.AuthCheckFrequency at use-time instead of construction-time
2021-04-29 13:54:05 -05:00
..
proxysupport xds: default to speaking xDS v3, but allow for v2 to be spoken upon request (#9658) 2021-02-26 16:23:15 -06:00
testdata fix broken golden tests 2021-04-14 11:36:47 -05:00
clusters.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
clusters_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05: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 Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
delta_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
endpoints.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
endpoints_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
envoy_versioning.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
envoy_versioning_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05: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 xds: remove deprecated usages of xDS (#9602) 2021-02-22 15:00:15 -06: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 Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
listeners_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
naming.go connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340) 2019-08-19 13:03:03 -05:00
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 xds: default to speaking xDS v3, but allow for v2 to be spoken upon request (#9658) 2021-02-26 16:23:15 -06:00
rbac_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
resources.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
response.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
routes.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
routes_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
server.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
server_oss.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
server_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
testing.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
version_compat.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
xds.go Remove unused customEDSClusterJSON 2020-03-27 15:38:16 -04:00
xds_protocol_helpers_test.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00