diff --git a/deploy/charts/rook-ceph/templates/clusterrole.yaml b/deploy/charts/rook-ceph/templates/clusterrole.yaml index 89570cffb4bd..eb2382c28b85 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 8f7977bb5cf3..397f8cb682f0 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