Skip to content

Commit c8e0586

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. fixed merge conflict added volumesnapshotclass to helm chart updated helm value name for volumeSnapshotClass updated helm value name for volumeSnapshotClass added volumesnapshotclass to helm chart format yaml file added volumesnapshotclass to helm chart
1 parent 6b69b9b commit c8e0586

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-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.volumeSnapshotClass.create }}
2+
---
3+
apiVersion: snapshot.storage.k8s.io/v1
4+
kind: VolumeSnapshotClass
5+
metadata:
6+
name: {{ .Values.volumeSnapshotClass.name }}
7+
driver: {{ .Values.driver.name }}
8+
deletionPolicy: {{ .Values.volumeSnapshotClass.deletionPolicy }}
9+
{{- end }}

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

Lines changed: 7 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,12 @@ 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+
## volumeSnapshotClass resource example:
164+
volumeSnapshotClass:
165+
create: false
166+
name: csi-nfs-snapclass
167+
deletionPolicy: Delete
168+
162169
## Reference to one or more secrets to be used when pulling images
163170
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
164171
##

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)