_persistence.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. {{- if and (eq .Values.homarrStorage.configs.type "ixVolume")
  11. (not (.Values.homarrStorage.configs.ixVolumeConfig | default dict).aclEnable) }}
  12. 01-permissions:
  13. mountPath: /mnt/directories/configs
  14. {{- end }}
  15. data:
  16. enabled: true
  17. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homarrStorage.data) | nindent 4 }}
  18. targetSelector:
  19. homarr:
  20. homarr:
  21. mountPath: /data
  22. {{- if and (eq .Values.homarrStorage.data.type "ixVolume")
  23. (not (.Values.homarrStorage.data.ixVolumeConfig | default dict).aclEnable) }}
  24. 01-permissions:
  25. mountPath: /mnt/directories/data
  26. {{- end }}
  27. icons:
  28. enabled: true
  29. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homarrStorage.icons) | nindent 4 }}
  30. targetSelector:
  31. homarr:
  32. homarr:
  33. mountPath: /app/public/icons
  34. {{- if and (eq .Values.homarrStorage.icons.type "ixVolume")
  35. (not (.Values.homarrStorage.icons.ixVolumeConfig | default dict).aclEnable) }}
  36. 01-permissions:
  37. mountPath: /mnt/directories/icons
  38. {{- end }}
  39. tmp:
  40. enabled: true
  41. type: emptyDir
  42. targetSelector:
  43. homarr:
  44. homarr:
  45. mountPath: /tmp
  46. {{- range $idx, $storage := .Values.homarrStorage.additionalStorages }}
  47. {{ printf "homarr-%v" (int $idx) }}:
  48. enabled: true
  49. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  50. targetSelector:
  51. homarr:
  52. homarr:
  53. mountPath: {{ $storage.mountPath }}
  54. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  55. 01-permissions:
  56. mountPath: /mnt/directories{{ $storage.mountPath }}
  57. {{- end }}
  58. {{- end }}
  59. {{- end -}}