Skip to content

Commit 58fdf5e

Browse files
committed
added volumesnapshotclass to helm chart
1 parent 6b69b9b commit 58fdf5e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
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: 6 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,11 @@ 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+
162168
## Reference to one or more secrets to be used when pulling images
163169
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
164170
##

0 commit comments

Comments
 (0)