From 88b879c310e34c831392d059dbdacf50e7686101 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 21 Dec 2022 11:10:54 +0100 Subject: [PATCH] csi: add missing update rbac when a PVC is cloned external-provisioner still required update access or else a warning will be logged in the pvc describe output Signed-off-by: Madhu Rajanna (cherry picked from commit 61c533ba41d4339b4c740428cd631318ab97c2f7) --- deploy/charts/rook-ceph/templates/clusterrole.yaml | 4 ++-- deploy/examples/common.yaml | 2 +- deploy/examples/csi/nfs/rbac.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/charts/rook-ceph/templates/clusterrole.yaml b/deploy/charts/rook-ceph/templates/clusterrole.yaml index 4d40a4896..b9d3b1789 100644 --- a/deploy/charts/rook-ceph/templates/clusterrole.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrole.yaml @@ -398,7 +398,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "patch"] + verbs: ["get", "list", "watch", "patch", "update"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] @@ -462,7 +462,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "patch"] + verbs: ["get", "list", "watch", "patch", "update"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] diff --git a/deploy/examples/common.yaml b/deploy/examples/common.yaml index c3245dcb5..a1db9f276 100644 --- a/deploy/examples/common.yaml +++ b/deploy/examples/common.yaml @@ -35,7 +35,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "patch"] + verbs: ["get", "list", "watch", "patch", "update"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] diff --git a/deploy/examples/csi/nfs/rbac.yaml b/deploy/examples/csi/nfs/rbac.yaml index b8dbef640..5acf98a13 100644 --- a/deploy/examples/csi/nfs/rbac.yaml +++ b/deploy/examples/csi/nfs/rbac.yaml @@ -27,7 +27,7 @@ rules: verbs: ["get", "list", "watch", "create", "delete", "patch"] - apiGroups: [""] resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "patch"] + verbs: ["get", "list", "watch", "patch", "update"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"]