This commit is contained in:
parent
fbcf8a2bcf
commit
d5722edd95
1 changed files with 6 additions and 3 deletions
|
@ -24,19 +24,22 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
{{ if .Values.downloadVoices }}
|
{{- if .Values.downloadVoices }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: download-voices
|
- name: download-voices
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: registry.fedoraproject.org/fedora-minimal
|
image: registry.fedoraproject.org/fedora-minimal
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command: curl --remote-name-all {{ join " " .Values.downloadVoices }}
|
command:
|
||||||
|
- "curl"
|
||||||
|
- "--remote-name-all"
|
||||||
|
{{ .Values.downloadVoices | toYaml }}
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{ end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
Loading…
Reference in a new issue