Files
charts/library/ix-dev/community/komga/templates/_persistence.tpl
T
Stavros Kois 9690326b84 NAS-122753 / 23.10 / Add komga to community train (#1318)
* init commit

* add templates

* add ci values

* add UI
2023-07-04 23:50:36 +03:00

35 lines
1007 B
Smarty

{{- define "komga.persistence" -}}
persistence:
config:
enabled: true
type: {{ .Values.komgaStorage.config.type }}
datasetName: {{ .Values.komgaStorage.config.datasetName | default "" }}
hostPath: {{ .Values.komgaStorage.config.hostPath | default "" }}
targetSelector:
komga:
komga:
mountPath: /config
01-permissions:
mountPath: /mnt/directories/config
tmp:
enabled: true
type: emptyDir
targetSelector:
komga:
komga:
mountPath: /tmp
{{- range $idx, $storage := .Values.komgaStorage.additionalStorages }}
{{ printf "komga-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
komga:
komga:
mountPath: {{ $storage.mountPath }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}