From 16c969f7dc897e660d6ee4c7f08d8a14af0fe294 Mon Sep 17 00:00:00 2001 From: hanenMizouni Date: Sun, 13 Oct 2024 10:50:47 +0000 Subject: [PATCH] support Volume Group Snapshots k8s 1.27 Signed-off-by: hanenMizouni --- .../templates/clusterrole-snapshotter.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml b/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml index ab803d88..02f97657 100644 --- a/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml +++ b/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml @@ -16,12 +16,24 @@ rules: - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotclasses"] verbs: ["get", "list", "watch"] + - apiGroups: ["snapshot.storage.k8s.io"] + resources: ["volumesnapshots"] + verbs: ["get", "list", "watch", "update", "patch", "create"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents"] verbs: ["create", "get", "list", "watch", "update", "delete"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents/status"] verbs: ["update"] + - apiGroups: ["groupsnapshot.storage.k8s.io"] + resources: ["volumegroupsnapshotclasses"] + verbs: ["get", "list", "watch"] + - apiGroups: ["groupsnapshot.storage.k8s.io"] + resources: ["volumegroupsnapshotcontents"] + verbs: ["get", "list", "watch", "update", "patch"] + - apiGroups: ["groupsnapshot.storage.k8s.io"] + resources: ["volumegroupsnapshotcontents/status"] + verbs: ["update", "patch"] {{- with .Values.sidecars.snapshotterImage.additionalClusterRoleRules }} {{- . | toYaml | nindent 2 }} {{- end }}