Add initcontainer to download more voices.
All checks were successful
ci/woodpecker/push/piper Pipeline was successful

This commit is contained in:
Alex Manning 2023-07-06 20:18:53 +01:00
parent 25ca772325
commit b02c4cc912
2 changed files with 15 additions and 0 deletions

View file

@ -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:

View file

@ -51,3 +51,5 @@ pvc:
existingClaim: ""
storageClassName : ""
storage: 1Gi
downloadVoices: []