mirror of
https://github.com/truenas/charts.git
synced 2026-05-01 22:11:04 +08:00
24 lines
726 B
Smarty
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 -}}
|