open-consul/agent/structs
Nathan Coleman 423257c473
Implement APIGateway proxycfg snapshot (#16194)
* Stub proxycfg handler for API gateway

* Add Service Kind constants/handling for API Gateway

* Begin stubbing for SDS

* Add new Secret type to xDS order of operations

* Continue stubbing of SDS

* Iterate on proxycfg handler for API gateway

* Handle BoundAPIGateway config entry subscription in proxycfg-glue

* Add API gateway to config snapshot validation

* Add API gateway to config snapshot clone, leaf, etc.

* Subscribe to bound route + cert config entries on bound-api-gateway

* Track routes + certs on API gateway config snapshot

* Generate DeepCopy() for types used in watch.Map

* Watch all active references on api-gateway, unwatch inactive

* Track loading of initial bound-api-gateway config entry

* Use proper proto package for SDS mapping

* Use ResourceReference instead of ServiceName, collect resources

* Fix typo, add + remove TODOs

* Watch discovery chains for TCPRoute

* Add TODO for updating gateway services for api-gateway

* make proto

* Regenerate deep-copy for proxycfg

* Set datacenter on upstream ID from query source

* Watch discovery chains for http-route service backends

* Add ServiceName getter to HTTP+TCP Service structs

* Clean up unwatched discovery chains on API Gateway

* Implement watch for ingress leaf certificate

* Collect upstreams on http-route + tcp-route updates

* Remove unused GatewayServices update handler

* Remove unnecessary gateway services logic for API Gateway

* Remove outdate TODO

* Use .ToIngress where appropriate, including TODO for cleaning up

* Cancel before returning error

* Remove GatewayServices subscription

* Add godoc for handlerAPIGateway functions

* Update terminology from Connect => Consul Service Mesh

Consistent with terminology changes in https://github.com/hashicorp/consul/pull/12690

* Add missing TODO

* Remove duplicate switch case

* Rerun deep-copy generator

* Use correct property on config snapshot

* Remove unnecessary leaf cert watch

* Clean up based on code review feedback

* Note handler properties that are initialized but set elsewhere

* Add TODO for moving helper func into structs pkg

* Update generated DeepCopy code

* gofmt

* Generate DeepCopy() for API gateway listener types

* Improve variable name

* Regenerate DeepCopy() code

* Fix linting issue

* Temporarily remove the secret type from resource generation
2023-02-08 15:52:12 -06:00
..
aclfilter Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
acl.go Update token language to distinguish Accessor and Secret ID usage (#16044) 2023-02-07 12:26:30 -06:00
acl_cache.go
acl_cache_test.go
acl_oss.go
acl_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
auto_encrypt.go
autopilot.go
autopilot_oss.go
catalog.go
catalog_oss.go
check_definition.go
check_definition_test.go
check_type.go
config_entry.go [OSS] Add Peer field to service-defaults upstream overrides (#15956) 2023-02-03 10:51:53 -05:00
config_entry_discoverychain.go
config_entry_discoverychain_oss.go
config_entry_discoverychain_oss_test.go
config_entry_discoverychain_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
config_entry_export_oss_test.go
config_entry_exports.go
config_entry_exports_test.go
config_entry_gateways.go Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
config_entry_gateways_test.go Add additional controller implementations (#16188) 2023-02-08 14:50:17 -05:00
config_entry_inline_certificate.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
config_entry_inline_certificate_test.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
config_entry_intentions.go
config_entry_intentions_oss.go
config_entry_intentions_test.go
config_entry_mesh.go
config_entry_mesh_oss.go
config_entry_mesh_test.go
config_entry_oss.go
config_entry_oss_test.go
config_entry_routes.go Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
config_entry_routes_test.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
config_entry_status.go Add additional controller implementations (#16188) 2023-02-08 14:50:17 -05:00
config_entry_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
connect.go
connect_ca.go
connect_ca_test.go
connect_oss.go
connect_proxy_config.go
connect_proxy_config_oss.go [OSS] Add Peer field to service-defaults upstream overrides (#15956) 2023-02-03 10:51:53 -05:00
connect_proxy_config_test.go
deep-copy.sh Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
discovery_chain.go
discovery_chain_oss.go
envoy_extension.go Add extension validation on config save and refactor extensions. (#16110) 2023-01-30 15:35:26 -06:00
errors.go
federation_state.go
identity.go
intention.go
intention_oss.go
intention_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
operator.go
peering.go
prepared_query.go
prepared_query_test.go
protobuf_compat.go
service_definition.go
service_definition_test.go
snapshot.go
structs.deepcopy.go Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
structs.go Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
structs_ext_test.go
structs_filtering_test.go
structs_oss.go Add the operator usage instances command and api endpoint (#16205) 2023-02-08 12:07:21 -08:00
structs_oss_test.go
structs_test.go
system_metadata.go
testing.go
testing_catalog.go
testing_connect_proxy_config.go
testing_intention.go
testing_service_definition.go
txn.go