generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
When a CRD has one of its fields replaced with a SecretKeyReference field, the controller's reconciler will need to read the value of a referred-to Secret. However, the ClusterRole that we set up for ACK service controllers does not provide read access to Secret resources:
We need to add some logic into the above template that conditionally adds the kubebuilder RBAC annotations for the controller ClusterRole to read Secrets but only when any resource in any resource manager embedded in the controller has a SecretKeyReference field.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.