_persistence.tpl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {{- define "homarr.persistence" -}}
  2. persistence:
  3. configs:
  4. enabled: true
  5. type: {{ .Values.homarrStorage.configs.type }}
  6. datasetName: {{ .Values.homarrStorage.configs.datasetName | default "" }}
  7. hostPath: {{ .Values.homarrStorage.configs.hostPath | default "" }}
  8. targetSelector:
  9. homarr:
  10. homarr:
  11. mountPath: /app/data/configs
  12. 01-permissions:
  13. mountPath: /mnt/directories/configs
  14. icons:
  15. enabled: true
  16. type: {{ .Values.homarrStorage.icons.type }}
  17. datasetName: {{ .Values.homarrStorage.icons.datasetName | default "" }}
  18. hostPath: {{ .Values.homarrStorage.icons.hostPath | default "" }}
  19. targetSelector:
  20. homarr:
  21. homarr:
  22. mountPath: /app/data/icons
  23. 01-permissions:
  24. mountPath: /mnt/directories/icons
  25. tmp:
  26. enabled: true
  27. type: emptyDir
  28. targetSelector:
  29. homarr:
  30. homarr:
  31. mountPath: /tmp
  32. {{- range $idx, $storage := .Values.homarrStorage.additionalStorages }}
  33. {{ printf "homarr-%v" (int $idx) }}:
  34. enabled: true
  35. type: {{ $storage.type }}
  36. datasetName: {{ $storage.datasetName | default "" }}
  37. hostPath: {{ $storage.hostPath | default "" }}
  38. targetSelector:
  39. homarr:
  40. homarr:
  41. mountPath: {{ $storage.mountPath }}
  42. 01-permissions:
  43. mountPath: /mnt/directories{{ $storage.mountPath }}
  44. {{- end }}
  45. {{- end -}}