{{- 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 -}}