diff --git a/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml b/osc-bsu-csi-driver/templates/clusterrole-snapshotter.yaml index c4cb3110..00fab3e8 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", "patch"] - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotcontents/status"] verbs: ["update", "patch"] + - 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 }}