Files
chart/library/ix-dev/community/listmonk/templates/_persistence.tpl
Stavros Kois 3114a39c2a fix permission on ixVolumes on initial install, when acls are not enabled (part2) (#1884)
* gitea

* joplin

* listmonk

* n8n

* odoo

* paperless

* vaultwarden

* planka

* linkding

* bump

* bump joplin too

* add 2 more
2023-12-19 11:35:58 +02:00

41 lines
1.4 KiB
Smarty

{{- define "listmonk.persistence" -}}
persistence:
uploads:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.listmonkStorage.uploads) | nindent 4 }}
targetSelector:
listmonk:
listmonk:
mountPath: /listmonk/uploads
{{- if and (eq .Values.listmonkStorage.uploads.type "ixVolume")
(not (.Values.listmonkStorage.uploads.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/uploads
{{- end }}
tmp:
enabled: true
type: emptyDir
targetSelector:
listmonk:
listmonk:
mountPath: /tmp
{{- range $idx, $storage := .Values.listmonkStorage.additionalStorages }}
{{ printf "listmonk-%v:" (int $idx) }}
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
listmonk:
listmonk:
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.listmonkStorage.pgData
"pgBackup" .Values.listmonkStorage.pgBackup
) | nindent 2 }}
{{- end -}}