_persistence.tpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- define "mealie.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.mealieStorage.data) | nindent 4 }}
  6. targetSelector:
  7. mealie:
  8. mealie:
  9. mountPath: /app/data
  10. {{- if and (eq .Values.mealieStorage.data.type "ixVolume")
  11. (not (.Values.mealieStorage.data.ixVolumeConfig | default dict).aclEnable) }}
  12. 01-permissions:
  13. mountPath: /mnt/directories/data
  14. {{- end }}
  15. tmp:
  16. enabled: true
  17. type: emptyDir
  18. targetSelector:
  19. mealie:
  20. mealie:
  21. mountPath: /tmp
  22. {{- range $idx, $storage := .Values.mealieStorage.additionalStorages }}
  23. {{ printf "mealie-%v:" (int $idx) }}
  24. enabled: true
  25. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  26. targetSelector:
  27. mealie:
  28. mealie:
  29. mountPath: {{ $storage.mountPath }}
  30. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  31. 01-permissions:
  32. mountPath: /mnt/directories{{ $storage.mountPath }}
  33. {{- end }}
  34. {{- end -}}
  35. {{- include "ix.v1.common.app.postgresPersistence"
  36. (dict "pgData" .Values.mealieStorage.pgData
  37. "pgBackup" .Values.mealieStorage.pgBackup
  38. ) | nindent 2 }}
  39. {{- end -}}