_persistence.tpl 726 B

1234567891011121314151617181920212223
  1. {{- define "drawio.persistence" -}}
  2. persistence:
  3. tmp:
  4. enabled: true
  5. type: emptyDir
  6. targetSelector:
  7. drawio:
  8. drawio:
  9. mountPath: /tmp
  10. {{- range $idx, $storage := .Values.drawioStorage.additionalStorages }}
  11. {{ printf "drawio-%v:" (int $idx) }}
  12. enabled: true
  13. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  14. targetSelector:
  15. drawio:
  16. drawio:
  17. mountPath: {{ $storage.mountPath }}
  18. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  19. 01-permissions:
  20. mountPath: /mnt/directories{{ $storage.mountPath }}
  21. {{- end }}
  22. {{- end }}
  23. {{- end -}}