From d5defb86a54e8c112f7a06f99556ba8afe817f86 Mon Sep 17 00:00:00 2001 From: hanenMizouni Date: Mon, 14 Oct 2024 19:45:06 +0000 Subject: [PATCH] add patch to provisioner and snapshotor clusterrole Signed-off-by: hanenMizouni --- osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml | 2 +- osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml b/osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml index 16f02a10..83e9d5f0 100644 --- a/osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml +++ b/osc-bsu-csi-driver/templates/clusterrole-provisioner.yaml @@ -8,7 +8,7 @@ metadata: rules: - apiGroups: [ "" ] resources: [ "persistentvolumes" ] - verbs: [ "get", "list", "watch", "create", "delete" ] + verbs: [ "get", "list", "watch", "create", "patch", "delete" ] - apiGroups: [ "" ] resources: [ "persistentvolumeclaims" ] verbs: [ "get", "list", "watch", "update" ] diff --git a/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml b/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml index ab803d88..5a2153d8 100644 --- a/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml +++ b/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml @@ -18,10 +18,10 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents"] - verbs: ["create", "get", "list", "watch", "update", "delete"] + verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents/status"] - verbs: ["update"] + verbs: ["update", "patch"] {{- with .Values.sidecars.snapshotterImage.additionalClusterRoleRules }} {{- . | toYaml | nindent 2 }} {{- end }}