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/#after-deploying-my-operator-why-do-i-see-errors-like-is-forbidden-cannot-set-blockownerdeletion-if-an-ownerreference-refers-to-a-resource-you-cant-set-finalizers-on- for further reference

Signed-off-by: Daniel Ruiz Capilla <crd1985@gmail.com>
  • Loading branch information
crd1985 committed Dec 16, 2021
1 parent 07f101e commit f75a566
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 f75a566

Please sign in to comment.