diff --git a/deploy/charts/rook-ceph/templates/clusterrole.yaml b/deploy/charts/rook-ceph/templates/clusterrole.yaml index 89570cffb4bdf..eb2382c28b850 100644 --- a/deploy/charts/rook-ceph/templates/clusterrole.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrole.yaml @@ -288,6 +288,11 @@ rules: verbs: # OBC controller updates OBC and OB statuses - update + - apiGroups: ["objectbucket.io"] + resources: ["objectbucketclaims/finalizers", "objectbuckets/finalizers"] + verbs: + # OBC controller updates OBC and OB finalizers + - update --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 diff --git a/deploy/examples/common.yaml b/deploy/examples/common.yaml index 6fae3544d47f8..df0a10dc729c0 100644 --- a/deploy/examples/common.yaml +++ b/deploy/examples/common.yaml @@ -464,6 +464,11 @@ rules: verbs: # OBC controller updates OBC and OB statuses - update + - apiGroups: ["objectbucket.io"] + resources: ["objectbucketclaims/finalizers", "objectbuckets/finalizers"] + verbs: + # OBC controller updates OBC and OB finalizers + - update --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1