Files
chart/library/ix-dev/community/vikunja/templates/_persistence.tpl
Stavros Kois 2d457c4e37 update vikunja (#2749)
* update vikunja

* remove imports

* typo

* add missing nodePort

* hmm

* major version

* Update _configuration.tpl
2024-08-20 20:28:07 +03:00

42 lines
1.4 KiB
Smarty

{{- define "vikunja.persistence" -}}
persistence:
tmp:
enabled: true
type: emptyDir
targetSelector:
vikunja-api:
vikunja-api:
mountPath: /tmp
data:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.vikunjaStorage.data) | nindent 4 }}
targetSelector:
vikunja-api:
vikunja-api:
mountPath: /app/vikunja/files
{{- if and (eq .Values.vikunjaStorage.data.type "ixVolume")
(not (.Values.vikunjaStorage.data.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/data
{{- end }}
{{- range $idx, $storage := .Values.vikunjaStorage.additionalStorages }}
{{ printf "vikunja-%v" (int $idx) }}:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
vikunja-api:
vikunja-api:
mountPath: {{ $storage.mountPath }}
{{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}
{{- include "ix.v1.common.app.postgresPersistence"
(dict "pgData" .Values.vikunjaStorage.pgData
"pgBackup" .Values.vikunjaStorage.pgBackup
) | nindent 2 }}
{{- end -}}