Add initcontainer to download more voices.
All checks were successful
ci/woodpecker/push/piper Pipeline was successful
All checks were successful
ci/woodpecker/push/piper Pipeline was successful
This commit is contained in:
parent
25ca772325
commit
b02c4cc912
2 changed files with 15 additions and 0 deletions
|
@ -24,6 +24,19 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
|
{{ 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 }}
|
||||||
|
workingDir: /data
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
{{ endif }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
@ -51,3 +51,5 @@ pvc:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
storageClassName : ""
|
storageClassName : ""
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
|
||||||
|
downloadVoices: []
|
||||||
|
|
Loading…
Reference in a new issue