Skip to content

Commit 1a6834b

Browse files
CopilotJaydipGabani
andcommitted
Remove Status operation from OPA client and cache manager dependencies
Status controllers only aggregate status CRDs and don't use OPA client or cache manager Co-authored-by: JaydipGabani <[email protected]>
1 parent c9ef9e9 commit 1a6834b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ blockingLoop:
382382
func setupControllers(ctx context.Context, mgr ctrl.Manager, tracker *readiness.Tracker, setupFinished chan struct{}) error {
383383
<-setupFinished
384384

385-
needsOPAClient := operations.IsAssigned(operations.Audit) || operations.IsAssigned(operations.Webhook) || operations.IsAssigned(operations.Status) || *externaldata.ExternalDataEnabled
385+
needsOPAClient := operations.IsAssigned(operations.Audit) || operations.IsAssigned(operations.Webhook) || *externaldata.ExternalDataEnabled
386386
needsMutationSystem := operations.IsAssigned(operations.MutationWebhook) || operations.IsAssigned(operations.MutationController) || operations.IsAssigned(operations.MutationStatus) || *expansion.ExpansionEnabled
387387
needsExpansionSystem := *expansion.ExpansionEnabled
388388
needsProviderCache := *externaldata.ExternalDataEnabled
@@ -519,7 +519,7 @@ func setupControllers(ctx context.Context, mgr ctrl.Manager, tracker *readiness.
519519

520520
var cm *cachemanager.CacheManager
521521
var events chan event.GenericEvent
522-
if operations.IsAssigned(operations.Audit) || operations.IsAssigned(operations.Webhook) || operations.IsAssigned(operations.Status) {
522+
if operations.IsAssigned(operations.Audit) || operations.IsAssigned(operations.Webhook) {
523523
events = make(chan event.GenericEvent, 1024)
524524
reg, err := wm.NewRegistrar(
525525
cachemanager.RegistrarName,

0 commit comments

Comments
 (0)