_persistence.tpl 752 B

123456789101112131415161718192021222324
  1. {{- define "kavita.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. type: {{ .Values.kavitaStorage.config.type }}
  6. datasetName: {{ .Values.kavitaStorage.config.datasetName | default "" }}
  7. hostPath: {{ .Values.kavitaStorage.config.hostPath | default "" }}
  8. targetSelector:
  9. kavita:
  10. kavita:
  11. mountPath: /kavita/config
  12. {{- range $idx, $storage := .Values.kavitaStorage.additionalStorages }}
  13. {{ printf "kavita-%v" (int $idx) }}:
  14. enabled: true
  15. type: {{ $storage.type }}
  16. datasetName: {{ $storage.datasetName | default "" }}
  17. hostPath: {{ $storage.hostPath | default "" }}
  18. targetSelector:
  19. kavita:
  20. kavita:
  21. mountPath: {{ $storage.mountPath }}
  22. {{- end }}
  23. {{- end -}}