Skip to content

Commit 1a49c1a

Browse files
do not generate snapshotter container if enabled: false
1 parent 49570c7 commit 1a49c1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/v4.9.0/csi-driver-nfs/templates/csi-nfs-controller.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ spec:
8686
capabilities:
8787
drop:
8888
- ALL
89+
{{- if .Values.externalSnapshotter.enabled }}
8990
- name: csi-snapshotter
9091
{{- if hasPrefix "/" .Values.image.csiSnapshotter.repository }}
9192
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
@@ -110,6 +111,7 @@ spec:
110111
capabilities:
111112
drop:
112113
- ALL
114+
{{- end }}
113115
- name: liveness-probe
114116
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }}
115117
image: "{{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"

0 commit comments

Comments
 (0)