Skip to content

Commit

Permalink
rgw: fix blockOwnerDeletion error
Browse files Browse the repository at this point in the history
This restores the missing permissions to allow the object controller to
update the finalizers section in the spec. See https://sdk.operatorframework.io/docs/faqs/

Signed-off-by: Daniel Ruiz Capilla <crd1985@gmail.com>
  • Loading branch information
crd1985 committed Dec 16, 2021
1 parent 07f101e commit 66cc462
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/charts/rook-ceph/templates/clusterrole.yaml
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions deploy/examples/common.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 66cc462

Please sign in to comment.