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 }} {{- 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:

View file

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