_persistence.tpl 573 B

1234567891011121314151617
  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. {{- end }}
  16. {{- end -}}