diff --git a/charts/audiobookshelf/templates/deployment.yaml b/charts/audiobookshelf/templates/deployment.yaml index e4da38b..d767191 100644 --- a/charts/audiobookshelf/templates/deployment.yaml +++ b/charts/audiobookshelf/templates/deployment.yaml @@ -52,10 +52,12 @@ spec: mountPath: /config - name: metadata mountPath: /metadata - - name: audiobooks + - name: media mountPath: /audiobooks - - name: podcasts + subPath: audiobooks + - name: media mountPath: /podcasts + subPath: podcasts {{- range .Values.persistentVolumeClaims }} - name: {{ .name }} mountPath: {{ .mountPath }} @@ -87,17 +89,10 @@ spec: {{- else }} emptyDir: {} {{- end }} - - name: audiobooks - {{- if .Values.persistence.audiobooks.enabled }} + - name: media + {{- if .Values.persistence.media.enabled }} persistentVolumeClaim: - claimName: {{ .Values.persistence.audiobooks.existingClaim | default (printf "%s-audiobooks" (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" .)) }} + claimName: {{ .Values.persistence.media.existingClaim | default (printf "%s-media" (include "audiobookshelf.fullname" .)) }} {{- else }} emptyDir: {} {{- end }}