_persistence.tpl 559 B

123456789101112131415161718192021
  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. type: {{ $storage.type }}
  14. datasetName: {{ $storage.datasetName | default "" }}
  15. hostPath: {{ $storage.hostPath | default "" }}
  16. targetSelector:
  17. drawio:
  18. drawio:
  19. mountPath: {{ $storage.mountPath }}
  20. {{- end }}
  21. {{- end -}}