consul/internal/controller/cache
Matt Keeler 59cb12c798
Migrate the Endpoints controller to use the controller cache (#20241)
* Add cache resource decoding helpers

* Implement a common package for workload selection facilities. This includes:

   * Controller cache Index
   * ACL hooks
   * Dependency Mapper to go from workload to list of resources which select it
   * Dependency Mapper to go from a resource which selects workloads to all the workloads it selects.

* Update the endpoints controller to use the cache instead of custom mappers.

Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2024-01-18 17:52:52 -05:00
..
cachemock Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
index Migrate the Endpoints controller to use the controller cache (#20241) 2024-01-18 17:52:52 -05:00
indexers Migrate the Endpoints controller to use the controller cache (#20241) 2024-01-18 17:52:52 -05:00
testdata Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
.mockery.yaml Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
cache.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
cache_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
client.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
client_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
clone.go In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
clone_test.go In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
decoded.go Migrate the Endpoints controller to use the controller cache (#20241) 2024-01-18 17:52:52 -05:00
decoded_test.go Migrate the Endpoints controller to use the controller cache (#20241) 2024-01-18 17:52:52 -05:00
errors.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
errors_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
kind.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
kind_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00