mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
feat: Enhance media volume configuration with support for persistent volume claims
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user