_persistence.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- define "homarr.persistence" -}}
  2. persistence:
  3. configs:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homarrStorage.configs) | nindent 4 }}
  6. targetSelector:
  7. homarr:
  8. homarr:
  9. mountPath: /app/data/configs
  10. data:
  11. enabled: true
  12. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homarrStorage.data) | nindent 4 }}
  13. targetSelector:
  14. homarr:
  15. homarr:
  16. mountPath: /data
  17. icons:
  18. enabled: true
  19. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homarrStorage.icons) | nindent 4 }}
  20. targetSelector:
  21. homarr:
  22. homarr:
  23. mountPath: /app/data/icons
  24. tmp:
  25. enabled: true
  26. type: emptyDir
  27. targetSelector:
  28. homarr:
  29. homarr:
  30. mountPath: /tmp
  31. {{- range $idx, $storage := .Values.homarrStorage.additionalStorages }}
  32. {{ printf "homarr-%v" (int $idx) }}:
  33. enabled: true
  34. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  35. targetSelector:
  36. homarr:
  37. homarr:
  38. mountPath: {{ $storage.mountPath }}
  39. {{- end }}
  40. {{- end -}}