feat: Enhance media volume configuration with support for persistent volume claims

This commit is contained in:
sha
2026-03-24 17:40:08 +02:00
parent 657ef8d7bd
commit 6b12ea1dc7
4 changed files with 32 additions and 2 deletions
+5
View File
@@ -135,9 +135,14 @@ spec:
{{- end }}
{{- if .Values.persistence.media.enabled }}
- name: media
{{- if eq (.Values.persistence.media.type | default "hostPath") "hostPath" }}
hostPath:
path: {{ .Values.persistence.media.hostPath }}
type: DirectoryOrCreate
{{- else }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.media.existingClaim | default (printf "%s-media" (include "home-assistant.fullname" .)) }}
{{- end }}
{{- end }}
{{- if .Values.haSecrets.enabled }}
- name: ha-secrets