Allow csi-snapshotter to create and manage VolumeSnapshots
This patch allows the `external-snapshotter-runner` ClusterRole, which is bound to the `csi-snapshotter` Service Account, to create and manage VolumeSnapshot objects. This is needed during the synchronization of VolumeGroupSnapshots.
This commit is contained in:
@@ -34,6 +34,9 @@ rules:
|
|||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotclasses"]
|
resources: ["volumesnapshotclasses"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshots"]
|
||||||
|
verbs: ["get", "list", "watch", "update", "patch", "create"]
|
||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotcontents"]
|
resources: ["volumesnapshotcontents"]
|
||||||
verbs: ["get", "list", "watch", "update", "patch", "create"]
|
verbs: ["get", "list", "watch", "update", "patch", "create"]
|
||||||
|
Reference in New Issue
Block a user