From d5722edd95b671b99d0d3c3bee450bcf49f63976 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Thu, 6 Jul 2023 20:28:21 +0100 Subject: [PATCH] Tweak command. --- charts/piper/templates/deployment.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/piper/templates/deployment.yaml b/charts/piper/templates/deployment.yaml index 502e4cb..bfaf067 100644 --- a/charts/piper/templates/deployment.yaml +++ b/charts/piper/templates/deployment.yaml @@ -24,19 +24,22 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} - {{ if .Values.downloadVoices }} + {{- if .Values.downloadVoices }} initContainers: - name: download-voices securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: registry.fedoraproject.org/fedora-minimal imagePullPolicy: {{ .Values.image.pullPolicy }} - command: curl --remote-name-all {{ join " " .Values.downloadVoices }} + command: + - "curl" + - "--remote-name-all" + {{ .Values.downloadVoices | toYaml }} workingDir: /data volumeMounts: - name: data mountPath: /data - {{ end }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: