_persistence.tpl 787 B

123456789101112131415161718192021
  1. {{- define "joplin.persistence" -}}
  2. persistence:
  3. {{- include "ix.v1.common.app.postgresPersistence"
  4. (dict "pgData" .Values.joplinStorage.pgData
  5. "pgBackup" .Values.joplinStorage.pgBackup
  6. ) | nindent 2 }}
  7. {{- range $idx, $storage := .Values.joplinStorage.additionalStorages }}
  8. {{ printf "joplin-%v:" (int $idx) }}
  9. enabled: true
  10. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  11. targetSelector:
  12. joplin:
  13. joplin:
  14. mountPath: {{ $storage.mountPath }}
  15. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  16. 01-permissions:
  17. mountPath: /mnt/directories{{ $storage.mountPath }}
  18. {{- end }}
  19. {{- end }}
  20. {{- end -}}