_persistence.tpl 1.3 KB

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