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 }}
|
||||
securityContext:
|
||||
{{- 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:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
|
|
|
@ -51,3 +51,5 @@ pvc:
|
|||
existingClaim: ""
|
||||
storageClassName : ""
|
||||
storage: 1Gi
|
||||
|
||||
downloadVoices: []
|
||||
|
|
Loading…
Reference in a new issue