_persistence.tpl 1007 B

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