From 87f1fbe30e69aa4911fb841d34ede6f5b3b068c4 Mon Sep 17 00:00:00 2001 From: Daniel Ruiz Capilla Date: Thu, 16 Dec 2021 09:09:09 +0100 Subject: [PATCH] ceph: fix blockOwnerDeletion error See https://sdk.operatorframework.io/docs/faqs/ for further reference Signed-off-by: Daniel Ruiz Capilla --- deploy/charts/rook-ceph/templates/clusterrole.yaml | 5 +++++ deploy/examples/common.yaml | 5 +++++ 2 files changed, 10 insertions(+) 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