charts/audiobookshelf/templates/deployment.yaml aktualisiert

This commit is contained in:
Marko Oldenburg 2024-10-31 08:31:33 +00:00
parent f9da2c5116
commit b9f5bc2c65

View File

@ -52,10 +52,12 @@ spec:
mountPath: /config mountPath: /config
- name: metadata - name: metadata
mountPath: /metadata mountPath: /metadata
- name: audiobooks - name: media
mountPath: /audiobooks mountPath: /audiobooks
- name: podcasts subPath: audiobooks
- name: media
mountPath: /podcasts mountPath: /podcasts
subPath: podcasts
{{- range .Values.persistentVolumeClaims }} {{- range .Values.persistentVolumeClaims }}
- name: {{ .name }} - name: {{ .name }}
mountPath: {{ .mountPath }} mountPath: {{ .mountPath }}
@ -87,17 +89,10 @@ spec:
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
- name: audiobooks - name: media
{{- if .Values.persistence.audiobooks.enabled }} {{- if .Values.persistence.media.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.audiobooks.existingClaim | default (printf "%s-audiobooks" (include "audiobookshelf.fullname" .)) }} claimName: {{ .Values.persistence.media.existingClaim | default (printf "%s-media" (include "audiobookshelf.fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end }}
- name: podcasts
{{- if .Values.persistence.podcasts.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.podcasts.existingClaim | default (printf "%s-podcasts" (include "audiobookshelf.fullname" .)) }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}