consul/agent/proxycfg
hc-github-team-consul-core c0319b60ae
Backport of Fix to not create a watch to `Internal.ServiceDump` when mesh gateway is not used into release/1.15.x (#20266)
This add a fix to properly verify the gateway mode before creating a watch specific to mesh gateways. This watch have a high performance cost and when mesh gateways are not used is not used.

This also adds an optimization to only return the nodes when watching the Internal.ServiceDump RPC to avoid unnecessary disco chain compilation. As watches in proxy config only need the nodes.

* backport of commit b0ce20b5e2
* backport of commit 3d4bde00cf
* backport of commit b2c77246b9
* backport of commit e7ab4d418d
* backport of commit d00d9c5da4
* backport of commit b2db3d5eb4
* backport of commit 50fb45ac74
* backport of commit 7b41a61c17
* backport of commit 2fa0e0a629
* backport of commit 88849c9030
* backport of commit 4ac54f10bc
* backport of commit 2a9dfc37f2
* Fix tests for backport.

---------

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2024-01-19 08:18:53 -06:00
..
internal/watch [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
api_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
connect_proxy.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
data_sources.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
data_sources_ce.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
deep-copy.sh [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
ingress_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
manager.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
manager_test.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
mesh_gateway.go Backport of Fix to not create a watch to `Internal.ServiceDump` when mesh gateway is not used into release/1.15.x (#20266) 2024-01-19 08:18:53 -06:00
mesh_gateway_ce.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
naming.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
naming_ce.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
naming_test.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
proxycfg.deepcopy.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.15 (#19886) 2023-12-11 12:05:07 -06:00
proxycfg.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
snapshot.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
snapshot_test.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
state.go Backport of Fix to not create a watch to `Internal.ServiceDump` when mesh gateway is not used into release/1.15.x (#20266) 2024-01-19 08:18:53 -06:00
state_ce_test.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
state_test.go Backport of Fix to not create a watch to `Internal.ServiceDump` when mesh gateway is not used into release/1.15.x (#20266) 2024-01-19 08:18:53 -06:00
terminating_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_api_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_ce.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_connect_proxy.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_ingress_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_mesh_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_peering.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_terminating_gateway.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_tproxy.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
testing_upstreams.go [DO NOT MERGE UNTIL EOY] EOY license fixes 1.15.x (#19787) 2024-01-02 08:38:56 -08:00
upstreams.go Backport of Fix to not create a watch to `Internal.ServiceDump` when mesh gateway is not used into release/1.15.x (#20266) 2024-01-19 08:18:53 -06:00