open-consul/agent/structs
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
..
aclfilter add acl filter logs (#17143) 2023-04-26 10:57:35 -04:00
acl.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
auto_encrypt.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog.go Add /v1/internal/service-virtual-ip for manually setting service VIPs (#17294) 2023-05-12 00:38:52 +00:00
catalog_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_type.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
config_entry_discoverychain.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_discoverychain_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_exports.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_oss.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
config_entry_exports_oss_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_gateways.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
config_entry_gateways_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_inline_certificate.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_inline_certificate_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_intentions.go fixed aliases for sameness group (sameness_group) (#17161) 2023-04-26 14:53:23 -07:00
config_entry_intentions_oss.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_oss_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_test.go [NET-3091] Update service intentions to support jwt provider references (#17037) 2023-04-19 18:16:39 -04:00
config_entry_jwt_provider.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_jwt_provider_oss.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_jwt_provider_test.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_mesh.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
config_entry_mesh_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_mesh_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_routes.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_routes_test.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_sameness_group.go Fix a bug with disco chain config entry fetching (#17078) 2023-04-21 09:18:32 -04:00
config_entry_sameness_group_oss.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
config_entry_status.go APIGW Normalize Status Conditions (#16994) 2023-04-24 16:22:55 -04:00
config_entry_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
connect.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
connect_proxy_config_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deep-copy.sh Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
discovery_chain.go Attach service virtual IP info to compiled discovery chain (#17295) 2023-05-12 02:28:16 +00:00
discovery_chain_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
envoy_extension.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
errors.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
federation_state.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
identity.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
intention_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
operator.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
peering.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
prepared_query_test.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
protobuf_compat.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
snapshot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs.deepcopy.go Attach service virtual IP info to compiled discovery chain (#17295) 2023-05-12 02:28:16 +00:00
structs.go sidecar-proxy refactor (#17328) 2023-05-12 16:49:42 -04:00
structs_ext_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_filtering_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
structs_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
system_metadata.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_catalog.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_connect_proxy_config.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_intention.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
txn.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00