open-consul/agent/proxycfg
sarahalsmiller eccdf81977
xds: generate listeners directly from API gateway snapshot (#17398)
* API Gateway XDS Primitives, endpoints and clusters (#17002)

* XDS primitive generation for endpoints and clusters

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* server_test

* deleted extra file

* add missing parents to test

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* Routes for API Gateway (#17158)

* XDS primitive generation for endpoints and clusters

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* server_test

* deleted extra file

* add missing parents to test

* checkpoint

* delete extra file

* httproute flattening code

* linting issue

* so close on this, calling for tonight

* unit test passing

* add in header manip to virtual host

* upstream rebuild commented out

* Use consistent upstream name whether or not we're rebuilding

* Start working through route naming logic

* Fix typos in test descriptions

* Simplify route naming logic

* Simplify RebuildHTTPRouteUpstream

* Merge additional compiled discovery chains instead of overwriting

* Use correct chain for flattened route, clean up + add TODOs

* Remove empty conditional branch

* Restore previous variable declaration

Limit the scope of this PR

* Clean up, improve TODO

* add logging, clean up todos

* clean up function

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* checkpoint, skeleton, tests not passing

* checkpoint

* endpoints xds cluster configuration

* resources test fix

* fix reversion in resources_test

* checkpoint

* Update agent/proxycfg/api_gateway.go

Co-authored-by: John Maguire <john.maguire@hashicorp.com>

* unit tests passing

* gofmt

* add deterministic sorting to appease the unit test gods

* remove panic

* Find ready upstream matching listener instead of first in list

* Clean up, improve TODO

* Modify getReadyUpstreams to filter upstreams by listener (#17410)

Each listener would previously have all upstreams from any route that bound to the listener. This is problematic when a route bound to one listener also binds to other listeners and so includes upstreams for multiple listeners. The list for a given listener would then wind up including upstreams for other listeners.

* clean up todos, references to api gateway in listeners_ingress

* merge in Nathan's fix

* Update agent/consul/discoverychain/gateway.go

* cleanup current todos, remove snapshot manipulation from generation code

* Update agent/structs/config_entry_gateways.go

Co-authored-by: Thomas Eckert <teckert@hashicorp.com>

* Update agent/consul/discoverychain/gateway.go

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* Update agent/consul/discoverychain/gateway.go

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* Update agent/proxycfg/snapshot.go

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* clarified header comment for FlattenHTTPRoute, changed RebuildHTTPRouteUpstream to BuildHTTPRouteUpstream

* simplify cert logic

* Delete scratch

* revert route related changes in listener PR

* Update agent/consul/discoverychain/gateway.go

* Update agent/proxycfg/snapshot.go

* clean up uneeded extra lines in endpoints

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
Co-authored-by: John Maguire <john.maguire@hashicorp.com>
Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2023-05-22 17:36:29 -04:00
..
internal/watch copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
api_gateway.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
connect_proxy.go JWT Authentication with service intentions: xds package update (#17414) 2023-05-19 18:14:16 -04:00
data_sources.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
data_sources_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deep-copy.sh copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
ingress_gateway.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
manager.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
manager_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
mesh_gateway.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
mesh_gateway_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
naming_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
proxycfg.deepcopy.go JWT Authentication with service intentions: xds package update (#17414) 2023-05-19 18:14:16 -04:00
proxycfg.go docs: add envoy to the proxycfg diagram (#16834) 2023-04-04 09:42:42 -04:00
snapshot.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
snapshot_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state.go JWT Authentication with service intentions: xds package update (#17414) 2023-05-19 18:14:16 -04:00
state_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
state_test.go Rename hcp-metrics-collector to consul-telemetry-collector (#17327) 2023-05-16 14:36:05 -04:00
terminating_gateway.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing_api_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_connect_proxy.go Rename hcp-metrics-collector to consul-telemetry-collector (#17327) 2023-05-16 14:36:05 -04:00
testing_ingress_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_mesh_gateway.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
testing_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_peering.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_terminating_gateway.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
testing_tproxy.go Pull virtual IPs for filter chains from discovery chains (#17375) 2023-05-17 11:18:39 -07:00
testing_upstreams.go move enterprise test cases out of open source (#16985) 2023-04-13 09:07:06 -04:00
testing_upstreams_oss.go move enterprise test cases out of open source (#16985) 2023-04-13 09:07:06 -04:00
upstreams.go Fix multiple issues related to proxycfg health queries. (#17241) 2023-05-09 12:37:58 -05:00