Skip to content

Commit 3d3bc3d

Browse files
committed
Allow csi-snapshotter to be enabled without installing CRDs
1 parent 346af08 commit 3d3bc3d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
89 Bytes
Binary file not shown.

charts/latest/csi-driver-nfs/templates/crd-csi-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.externalSnapshotter.enabled -}}
1+
{{- if and .Values.externalSnapshotter.enabled .Values.externalSnapshotter.customResourceDefinitions.enabled -}}
22
---
33
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ externalSnapshotter:
138138
requests:
139139
cpu: 10m
140140
memory: 20Mi
141+
# Create volume snapshot CRDs.
142+
customResourceDefinitions:
143+
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
144+
141145
## Reference to one or more secrets to be used when pulling images
142146
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
143147
##

0 commit comments

Comments
 (0)