Skip to content

Commit f09b7bb

Browse files
committed
add volume group snapshot
1 parent 4222fce commit f09b7bb

File tree

77 files changed

+5018
-1626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+5018
-1626
lines changed
3.48 KB
Binary file not shown.

charts/latest/azuredisk-csi-driver/templates/crd-csi-volumegroupsnapshot.yaml

Lines changed: 657 additions & 0 deletions
Large diffs are not rendered by default.

charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ spec:
140140
- "--extra-create-metadata=true"
141141
- "--retry-interval-max=30m"
142142
- "--worker-threads=250"
143+
- "--feature-gates=CSIVolumeGroupSnapshot=true"
143144
env:
144145
- name: ADDRESS
145146
value: /csi/csi.sock

charts/latest/azuredisk-csi-driver/templates/csi-snapshot-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ spec:
8484
- "--leader-election-namespace={{ .Release.Namespace }}"
8585
- "--worker-threads=250"
8686
- "--retry-interval-max=30m"
87+
- "--feature-gates=CSIVolumeGroupSnapshot=true"
8788
resources: {{- toYaml .Values.snapshot.snapshotController.resources | nindent 12 }}
8889
imagePullPolicy: {{ .Values.snapshot.image.csiSnapshotController.pullPolicy }}
8990
securityContext:

charts/latest/azuredisk-csi-driver/templates/rbac-csi-azuredisk-controller.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ rules:
2929
- apiGroups: ["snapshot.storage.k8s.io"]
3030
resources: ["volumesnapshotcontents"]
3131
verbs: ["get", "list"]
32+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
33+
resources: ["volumegroupsnapshots"]
34+
verbs: ["get", "list"]
35+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
36+
resources: ["volumegroupsnapshotcontents"]
37+
verbs: ["get", "list"]
3238
- apiGroups: ["coordination.k8s.io"]
3339
resources: ["leases"]
3440
verbs: ["get", "watch", "list", "delete", "update", "create", "patch"]
@@ -117,6 +123,24 @@ rules:
117123
- apiGroups: ["snapshot.storage.k8s.io"]
118124
resources: ["volumesnapshotcontents/status"]
119125
verbs: ["update", "patch"]
126+
- apiGroups: ["snapshot.storage.k8s.io"]
127+
resources: ["volumesnapshots"]
128+
verbs: ["create", "get", "list", "watch", "update", "patch"]
129+
- apiGroups: ["snapshot.storage.k8s.io"]
130+
resources: ["volumesnapshots/status"]
131+
verbs: ["update", "patch"]
132+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
133+
resources: ["volumegroupsnapshotclasses"]
134+
verbs: ["get", "list", "watch"]
135+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
136+
resources: ["volumegroupsnapshotcontents"]
137+
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
138+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
139+
resources: ["volumegroupsnapshotcontents/status"]
140+
verbs: ["update", "patch"]
141+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
142+
resources: ["volumegroupsnapshots"]
143+
verbs: ["create", "get", "list", "watch", "update", "patch"]
120144
- apiGroups: ["coordination.k8s.io"]
121145
resources: ["leases"]
122146
verbs: ["get", "watch", "list", "delete", "update", "create", "patch"]

charts/latest/azuredisk-csi-driver/templates/rbac-csi-snapshot-controller.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,25 @@ rules:
2727
verbs: ["patch"]
2828
- apiGroups: ["snapshot.storage.k8s.io"]
2929
resources: ["volumesnapshots"]
30-
verbs: ["get", "list", "watch", "update", "patch", "create"]
30+
verbs: ["get", "list", "watch", "update", "patch", "create", "delete"]
3131
- apiGroups: ["snapshot.storage.k8s.io"]
3232
resources: ["volumesnapshots/status"]
3333
verbs: ["update", "patch"]
34+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
35+
resources: ["volumegroupsnapshotclasses"]
36+
verbs: ["get", "list", "watch"]
37+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
38+
resources: ["volumegroupsnapshotcontents"]
39+
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
40+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
41+
resources: ["volumegroupsnapshotcontents/status"]
42+
verbs: ["patch"]
43+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
44+
resources: ["volumegroupsnapshots"]
45+
verbs: ["get", "list", "watch", "update", "patch"]
46+
- apiGroups: ["groupsnapshot.storage.k8s.io"]
47+
resources: ["volumegroupsnapshots/status"]
48+
verbs: ["update", "patch"]
3449

3550
---
3651
kind: ClusterRoleBinding

deploy/crd-csi-volumegroupsnapshot.yaml

Lines changed: 657 additions & 0 deletions
Large diffs are not rendered by default.

deploy/csi-azuredisk-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec:
105105
- "--extra-create-metadata=true"
106106
- "--retry-interval-max=30m"
107107
- "--worker-threads=250"
108+
- "--feature-gates=CSIVolumeGroupSnapshot=true"
108109
env:
109110
- name: ADDRESS
110111
value: /csi/csi.sock

deploy/csi-snapshot-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
- "--leader-election-namespace=kube-system"
5353
- "--worker-threads=250"
5454
- "--retry-interval-max=30m"
55+
- "--feature-gates=CSIVolumeGroupSnapshot=true"
5556
resources:
5657
limits:
5758
memory: 500Mi
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: groupsnapshot.storage.k8s.io/v1beta1
3+
kind: VolumeGroupSnapshot
4+
metadata:
5+
name: new-group-snapshot-demo
6+
spec:
7+
volumeGroupSnapshotClassName: csi-groupsnapclass
8+
source:
9+
selector:
10+
matchLabels:
11+
group: myGroup

0 commit comments

Comments
 (0)