Skip to content

Commit

Permalink
Add RBAC for secrets in the CDI namespace (#3516)
Browse files Browse the repository at this point in the history
This is just some backlog that was left from #3314 (comment);
Basically, the config-controller is broken with ingress as the first
get call for the secret attempts to start caching them, and the RBAC for
that is missing.
https://sdk.operatorframework.io/docs/faqs/#after-deploying-my-operator-i-see-errors-like-failed-to-watch-external-type

Signed-off-by: Alex Kalenyuk <[email protected]>
  • Loading branch information
akalenyu authored Nov 6, 2024
1 parent a25dd7e commit 44948dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/cdi-controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ func getCacheOptions(apiClient client.Client, cdiNamespace string) cache.Options
&v1.ConfigMap{}: {
Field: namespaceSelector,
},
&v1.Secret{}: {
Field: namespaceSelector,
},
},
}

Expand Down

0 comments on commit 44948dd

Please sign in to comment.