open-consul/command
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
..
acl testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
agent config: make config.TestLoad_FullConfig use config.Load 2021-01-27 17:51:53 -05:00
catalog testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
config Rename "cluster" config entry to "mesh" (#10127) 2021-04-28 16:13:29 -06:00
connect Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
debug testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
event testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
exec testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
flags ci: update to Go 1.15.4 and alpine:3.12 (#9036) 2020-11-13 13:02:59 -05:00
forceleave testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
helpers
info testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
intention Fix flaky CLI Intention Listing Test 2021-01-19 15:27:49 -05:00
join testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
keygen
keyring testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
kv command/kv: Add prefix option to kv import command 2021-02-19 14:07:25 +03:00
leave testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
lock testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
login testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
logout testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
maint agent: move deprecated AddServiceFromSource to a test file 2021-01-25 17:25:03 -05:00
members testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
monitor testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
operator testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
reload testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
rtt testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
services Fixup tests 2021-04-13 16:08:41 -06:00
snapshot Fix panic bug in snapshot inspect (#10091) 2021-04-23 20:48:10 +01:00
tls introduce certopts (#9606) 2021-03-22 10:16:41 +01:00
validate config: replace calls to config.NewBuilder with config.Load 2021-01-27 17:34:43 -05:00
version add v to version pretty formatter (#8341) 2020-07-20 17:43:10 -04:00
watch testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
commands_oss.go cli: Add new `consul connect redirect-traffic` command for applying traffic redirection rules when Transparent Proxy is enabled. (#9910) 2021-04-09 11:48:10 -07:00
registry.go