open-consul/agent/consul/state
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
..
acl.go Update token language to distinguish Accessor and Secret ID usage (#16044) 2023-02-07 12:26:30 -06:00
acl_events.go
acl_events_test.go
acl_oss.go
acl_oss_test.go
acl_schema.go Remove legacy acl tokens (#15947) 2023-01-27 09:17:07 -06:00
acl_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
autopilot.go
autopilot_test.go
catalog.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
catalog_events.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
catalog_events_oss.go
catalog_events_oss_test.go
catalog_events_test.go Add a server-only method for updating ConfigEntry Statuses (#16053) 2023-01-27 14:34:11 -05:00
catalog_oss.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
catalog_oss_test.go
catalog_schema.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
catalog_test.go
config_entry.go Implement APIGateway proxycfg snapshot (#16194) 2023-02-08 15:52:12 -06:00
config_entry_events.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
config_entry_events_test.go Add a server-only method for updating ConfigEntry Statuses (#16053) 2023-01-27 14:34:11 -05:00
config_entry_intention.go
config_entry_intention_oss.go
config_entry_oss.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
config_entry_oss_test.go
config_entry_schema.go
config_entry_test.go
connect_ca.go
connect_ca_events.go
connect_ca_events_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
connect_ca_test.go
coordinate.go
coordinate_oss.go
coordinate_oss_test.go
coordinate_test.go
delay_oss.go
delay_test.go
events.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
events_test.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
federation_state.go
graveyard.go
graveyard_oss.go
graveyard_test.go
index_connect_test.go
indexer.go
intention.go Add a server-only method for updating ConfigEntry Statuses (#16053) 2023-01-27 14:34:11 -05:00
intention_oss.go
intention_test.go
kvs.go
kvs_oss.go
kvs_oss_test.go
kvs_test.go
memdb.go Native API Gateway Config Entries (#15897) 2023-01-18 22:14:34 +00:00
operations_oss.go
peering.go Protobuf Modernization (#15949) 2023-01-11 09:39:10 -05:00
peering_oss.go
peering_oss_test.go
peering_test.go Protobuf Modernization (#15949) 2023-01-11 09:39:10 -05:00
prepared_query.go
prepared_query_index.go
prepared_query_index_test.go
prepared_query_test.go
query.go
query_oss.go
schema.go
schema_oss.go
schema_oss_test.go
schema_test.go
session.go
session_oss.go
session_test.go
state_store.go
state_store_oss_test.go
state_store_test.go
store_integration_test.go Remove legacy acl policies (#15922) 2023-02-06 15:35:52 +00:00
system_metadata.go
system_metadata_test.go
tombstone_gc.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
tombstone_gc_test.go
txn.go
txn_test.go
usage.go Add the `operator usage instances` command and api endpoint (#16205) 2023-02-08 12:07:21 -08:00
usage_oss.go Add the `operator usage instances` command and api endpoint (#16205) 2023-02-08 12:07:21 -08:00
usage_test.go Add the `operator usage instances` command and api endpoint (#16205) 2023-02-08 12:07:21 -08:00