From 3599a32dd4be1c3ef0652fef81c030ba4b6c8d9c Mon Sep 17 00:00:00 2001 From: Leela Venkaiah G Date: Wed, 18 Sep 2024 10:51:18 +0000 Subject: [PATCH] add missing rbac for persistentvolume during deletion Signed-off-by: Leela Venkaiah G --- config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml | 2 +- config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml | 2 +- deploy/all-in-one/install.yaml | 2 ++ deploy/multifile/csi-rbac.yaml | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml b/config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml index 7850a48d..2100728f 100644 --- a/config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml +++ b/config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml @@ -8,7 +8,7 @@ rules: verbs: ["get", "list"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete", "patch"] + verbs: ["get", "list", "watch", "create", "delete", "patch", "update"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "patch", "update"] diff --git a/config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml b/config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml index 30d11264..e57fe9f6 100644 --- a/config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml +++ b/config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml @@ -8,7 +8,7 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete", "patch"] + verbs: ["get", "list", "watch", "create", "delete", "patch", "update"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"] diff --git a/deploy/all-in-one/install.yaml b/deploy/all-in-one/install.yaml index 2bf5f289..0e58d129 100644 --- a/deploy/all-in-one/install.yaml +++ b/deploy/all-in-one/install.yaml @@ -14146,6 +14146,7 @@ rules: - create - delete - patch + - update - apiGroups: - "" resources: @@ -14829,6 +14830,7 @@ rules: - create - delete - patch + - update - apiGroups: - "" resources: diff --git a/deploy/multifile/csi-rbac.yaml b/deploy/multifile/csi-rbac.yaml index 88b60800..264c13dd 100644 --- a/deploy/multifile/csi-rbac.yaml +++ b/deploy/multifile/csi-rbac.yaml @@ -118,6 +118,7 @@ rules: - create - delete - patch + - update - apiGroups: - "" resources: @@ -405,6 +406,7 @@ rules: - create - delete - patch + - update - apiGroups: - "" resources: