Skip to content

Commit b55e025

Browse files
committed
added volumesnapshotclass to helm chart
removed duplicate deletionPolicy made helm package update added snapshotclass.yaml in deployer folder added snapshotclass.yaml in deployer folder Combined: Removed duplicate deletionPolicy, added snapshotclass.yaml, and updated helm package.
1 parent 6b69b9b commit b55e025

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
94 Bytes
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- if .Values.externalSnapshotter.create }}
2+
---
3+
apiVersion: snapshot.storage.k8s.io/v1
4+
kind: VolumeSnapshotClass
5+
metadata:
6+
name: {{ .Values.snapshotClass.name }}
7+
driver: {{ .Values.driver.name }}
8+
deletionPolicy: {{ .Values.snapshotClass.deletionPolicy }}
9+
{{- end }}

charts/latest/csi-driver-nfs/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ externalSnapshotter:
147147
enabled: false
148148
name: snapshot-controller
149149
priorityClassName: system-cluster-critical
150+
deletionPolicy: Delete
150151
controller:
151152
replicas: 1
152153
resources:
@@ -159,6 +160,15 @@ externalSnapshotter:
159160
customResourceDefinitions:
160161
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
161162

163+
## SnapshotClass resource example:
164+
snapshotClass:
165+
name: csi-nfs-snapclass
166+
deletionPolicy: Delete
167+
<<<<<<< HEAD
168+
169+
=======
170+
171+
>>>>>>> 58fdf5ec (added volumesnapshotclass to helm chart)
162172
## Reference to one or more secrets to be used when pulling images
163173
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
164174
##

deploy/snapshotclass.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: snapshot.storage.k8s.io/v1
3+
kind: VolumeSnapshotClass
4+
metadata:
5+
name: csi-nfs-snapclass
6+
driver: nfs.csi.k8s.io
7+
deletionPolicy: Delete

0 commit comments

Comments
 (0)