diff --git a/deploy/charts/rook-ceph/templates/role.yaml b/deploy/charts/rook-ceph/templates/role.yaml index ee6a3e4d7c05..8e3643d1d643 100644 --- a/deploy/charts/rook-ceph/templates/role.yaml +++ b/deploy/charts/rook-ceph/templates/role.yaml @@ -74,7 +74,7 @@ rules: {{- if and .Values.csi.csiAddons .Values.csi.csiAddons.enabled }} - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"] @@ -95,7 +95,7 @@ metadata: rules: - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"] @@ -119,7 +119,7 @@ rules: {{- if and .Values.csi.csiAddons .Values.csi.csiAddons.enabled }} - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"] diff --git a/deploy/examples/common.yaml b/deploy/examples/common.yaml index 713b39fa673e..6e3c08a376b2 100644 --- a/deploy/examples/common.yaml +++ b/deploy/examples/common.yaml @@ -779,7 +779,7 @@ rules: verbs: ["get", "watch", "list", "delete", "update", "create"] - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"] @@ -798,7 +798,7 @@ metadata: rules: - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"] @@ -820,7 +820,7 @@ rules: verbs: ["get", "watch", "list", "delete", "update", "create"] - apiGroups: ["csiaddons.openshift.io"] resources: ["csiaddonsnodes"] - verbs: ["get", "create", "update"] + verbs: ["get", "create", "update", "delete"] - apiGroups: [""] resources: ["pods"] verbs: ["get"]