mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 11:06:11 +08:00
32 lines
948 B
Smarty
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 -}}
|