@@ -310,38 +310,36 @@ spec:
310310 {{- end }}
311311 {{- end }}
312312 {{- end }}
313- {{ if .Values.datadogSocketVolume.enabled }}
313+ {{- if include "worker.shouldRenderVolumeMounts" . }}
314314 volumeMounts :
315+ {{- if .Values.datadogSocketVolume.enabled }}
315316 - name : datadog-apm-socket
316317 mountPath : /var/run/datadog/apm.socket
317318 - name : datadog-dsd-socket
318319 mountPath : /var/run/datadog/dsd.socket
319- {{ end }}
320- {{ if .Values.pvc.enabled }}
321- volumeMounts :
320+ {{ end }}
321+ {{- if .Values.pvc.enabled }}
322322 - name : " {{ include " docker-template.fullname" . }}-storage"
323323 mountPath : {{ .Values.pvc.mountPath }}
324- {{ end }}
325- {{ if .Values.emptyDir.enabled }}
326- volumeMounts :
324+ {{ end }}
325+ {{- if .Values.emptyDir.enabled }}
327326 - name : " {{ include " docker-template.fullname" . }}-empty-dir-storage"
328327 mountPath : {{ .Values.emptyDir.mountPath }}
329- {{ end }}
330- {{ if and .Values.fileSecretMounts .Values.fileSecretMounts.enabled }}
331- {{ range .Values.fileSecretMounts.mounts }}
332- volumeMounts :
328+ {{ end }}
329+ {{- if and .Values.fileSecretMounts .Values.fileSecretMounts.enabled }}
330+ {{ range .Values.fileSecretMounts.mounts }}
333331 - name : {{ .mountPath }}
334332 mountPath : " /etc/secrets/{{ .mountPath }}"
335333 readOnly : true
336- {{ end }}
337- {{ end }}
338- {{ if .Values.additionalVolumes }}
339- volumeMounts :
340- {{- range .Values.additionalVolumes }}
334+ {{ end }}
335+ {{ end }}
336+ {{- if .Values.additionalVolumes }}
337+ {{ range .Values.additionalVolumes }}
341338 - name : {{ .name }}
342339 mountPath : {{ .mountPath }}
343- {{- end }}
344- {{ end }}
340+ {{ end }}
341+ {{ end }}
342+ {{ end }}
345343 {{- if .Values.cloudsql.enabled }}
346344 - name : cloud-sql-proxy
347345 image : gcr.io/cloudsql-docker/gce-proxy:1.17
@@ -438,7 +436,7 @@ spec:
438436 {{ if .Values.emptyDir.enabled }}
439437 - name : " {{ include " docker-template.fullname" . }}-empty-dir-storage"
440438 emptyDir :
441- {{- toYaml .Values.emptyDir.volumeOptions | nindent 8 }}
439+ {{- toYaml .Values.emptyDir.volumeOptions | nindent 12 }}
442440 {{ end }}
443441 {{ if .Values.fileSecretMounts.enabled }}
444442 {{ range .Values.fileSecretMounts.mounts }}
0 commit comments