Files
chart/library/ix-dev/community/drawio/templates/_persistence.tpl
Stavros Kois 2ee1489f40 Drawio - migrate storage section (adds acl) (#1926)
* bump version

* add migration

* update ui

* update template

* update template
2023-12-21 10:48:27 +02:00

24 lines
726 B
Smarty

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