consul/internal/controller
Matt Keeler 49e6c0232d
Panic for unregistered types (#20476)
* Panic when controllers attempt to make invalid requests to the resource service

This will help to catch bugs in tests that could cause infinite errors to be emitted.

* Disable the API GW v2 controller

With the previous commit, this would cause a server to panic due to watching a type which has not yet been created/registered.

* Ensure that a test server gets the full type registry instead of constructing its own

* Skip TestServer_ControllerDependencies

* Fix peering tests so that they use the full resource registry.
2024-02-06 11:23:06 -05:00
..
cache Fix panic on error (#20377) 2024-01-29 17:44:13 +00:00
controllermock Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
controllertest In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
dependency Fix filename with two periods (#20389) 2024-01-29 15:38:40 -05:00
testdata Prevent circular dependencies between v2 resources and generate a mermaid diagram with their dependencies (#19230) 2023-10-18 10:55:32 -04:00
.mockery.yaml Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
controller.go Remove V2 PeerName field from pbresource.Tenancy (#19865) 2024-01-29 15:08:31 -05:00
controller_test.go Add a separate test for initializer retries (#20298) 2024-01-19 16:59:44 -06:00
custom_watch.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
dependencies.go [NET-6426] Add gateway proxy controller that generates empty proxy state template (#19901) 2023-12-21 16:37:47 -05:00
dependencies_test.go Prevent circular dependencies between v2 resources and generate a mermaid diagram with their dependencies (#19230) 2023-10-18 10:55:32 -04:00
doc.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
helper.go mesh: Add ComputedProxyConfiguration and a controller that computes it. (#19043) 2023-10-10 17:34:53 -06:00
helper_test.go mesh: create new routes-controller to reconcile xRoute types into a ComputedRoutes resource (#18460) 2023-09-12 12:08:51 -05:00
lease.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
manager.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
mem_consistency_test.go v2: ensure the controller caches are fully populated before first use (#20421) 2024-02-02 15:11:05 -06:00
runner.go Panic for unregistered types (#20476) 2024-02-06 11:23:06 -05:00
supervisor.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
supervisor_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
testing.go Update workload health controller to use the controller cache (#20240) 2024-01-18 16:30:11 -05:00
watch.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00