Files
chart/library/ix-dev/community/planka/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

65 lines
2.4 KiB
Smarty

{{- define "planka.persistence" -}}
persistence:
avatars:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plankaStorage.avatars) | nindent 4 }}
targetSelector:
planka:
planka:
mountPath: /app/public/user-avatars
{{- if and (eq .Values.plankaStorage.avatars.type "ixVolume")
(not (.Values.plankaStorage.avatars.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/avatars
{{- end }}
bg-img:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plankaStorage.backgroundImages) | nindent 4 }}
targetSelector:
planka:
planka:
mountPath: /app/public/project-background-images
{{- if and (eq .Values.plankaStorage.backgroundImages.type "ixVolume")
(not (.Values.plankaStorage.backgroundImages.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/backgroundImages
{{- end }}
attachments:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plankaStorage.attachments) | nindent 4 }}
targetSelector:
planka:
planka:
mountPath: /app/private/attachments
{{- if and (eq .Values.plankaStorage.attachments.type "ixVolume")
(not (.Values.plankaStorage.attachments.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
mountPath: /mnt/directories/attachments
{{- end }}
tmp:
enabled: true
type: emptyDir
targetSelector:
planka:
planka:
mountPath: /tmp
{{- range $idx, $storage := .Values.plankaStorage.additionalStorages }}
{{ printf "planka-%v:" (int $idx) }}
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
planka:
planka:
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.plankaStorage.pgData
"pgBackup" .Values.plankaStorage.pgBackup
) | nindent 2 }}
{{- end -}}