Skip to content

Commit f4f1852

Browse files
committed
One boolean value for all the 3 CRDs
1 parent ed41aa4 commit f4f1852

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed
-26 Bytes
Binary file not shown.

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{{- if .Values.externalSnapshotter.enabled -}}
2-
{{- if .Values.externalSnapshotter.customResourceDefinitions.volumeSnapshot -}}
1+
{{- if and .Values.externalSnapshotter.enabled .Values.externalSnapshotter.customResourceDefinitions.enabled -}}
32
---
43
apiVersion: apiextensions.k8s.io/v1
54
kind: CustomResourceDefinition
@@ -308,8 +307,6 @@ status:
308307
plural: ""
309308
conditions: []
310309
storedVersions: []
311-
{{ end }}
312-
{{- if .Values.externalSnapshotter.customResourceDefinitions.volumeSnapshotClass -}}
313310
---
314311
apiVersion: apiextensions.k8s.io/v1
315312
kind: CustomResourceDefinition
@@ -444,8 +441,6 @@ status:
444441
plural: ""
445442
conditions: []
446443
storedVersions: []
447-
{{ end }}
448-
{{- if .Values.externalSnapshotter.customResourceDefinitions.volumeSnapshotContent -}}
449444
---
450445
apiVersion: apiextensions.k8s.io/v1
451446
kind: CustomResourceDefinition
@@ -842,5 +837,4 @@ status:
842837
plural: ""
843838
conditions: []
844839
storedVersions: []
845-
{{ end }}
846840
{{- end -}}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,8 @@ externalSnapshotter:
136136
cpu: 10m
137137
memory: 20Mi
138138
# Create volume snapshot CRDs.
139-
# Set the respective values as false, if respective CRD already exist in cluster.
140139
customResourceDefinitions:
141-
volumeSnapshot: true # When true, It will create VolumeSnapshot CRD
142-
volumeSnapshotClass: true # When true, It will create VolumeSnapshotClass CRD
143-
volumeSnapshotContent: true # When true, It will create VolumeSnapshotContent CRD
140+
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
144141

145142
## Reference to one or more secrets to be used when pulling images
146143
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

0 commit comments

Comments
 (0)