Files
chart/library/ix-dev/community/listmonk/templates/_persistence.tpl
Stavros Kois 602febd45b listmonk - migrate storage section (#1777)
* listmonk - migrate storage section

* exec bit

* label

* remove chown
2023-11-22 18:52:23 +02:00

32 lines
948 B
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
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 }}
{{- end -}}
{{- include "ix.v1.common.app.postgresPersistence"
(dict "pgData" .Values.listmonkStorage.pgData
"pgBackup" .Values.listmonkStorage.pgBackup
) | nindent 2 }}
{{- end -}}