Fix volume handling and persistence flag

This commit is contained in:
kaiyou 2022-11-06 17:50:06 +01:00
parent f285cb6ecf
commit bf5868a71d

View file

@ -81,16 +81,16 @@ spec:
name: {{ include "garage.fullname" . }}-config
- name: etc
emptyDir: {}
{{- if eq .Values.deployment.kind "DaemonSet" }}
{{- if .Values.persistence.enabled }}
{{- if eq .Values.deployment.kind "DaemonSet" }}
- name: meta
hostPath:
path: {{ .Values.persistence.meta.hostPath }}
- name: data
hostPath:
path: {{ .Values.persistence.data.hostPath }}
{{- else }}
{{- end }}
{{- else }}
- name: meta
emptyDir: {}
- name: data