_persistence.tpl 1019 B

12345678910111213141516171819202122232425262728293031323334
  1. {{- define "nodered.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. type: {{ .Values.noderedStorage.data.type }}
  6. datasetName: {{ .Values.noderedStorage.data.datasetName | default "" }}
  7. hostPath: {{ .Values.noderedStorage.data.hostPath | default "" }}
  8. targetSelector:
  9. nodered:
  10. nodered:
  11. mountPath: /data
  12. 01-permissions:
  13. mountPath: /mnt/directories/data
  14. tmp:
  15. enabled: true
  16. type: emptyDir
  17. targetSelector:
  18. nodered:
  19. nodered:
  20. mountPath: /tmp
  21. {{- range $idx, $storage := .Values.noderedStorage.additionalStorages }}
  22. {{ printf "nodered-%v" (int $idx) }}:
  23. enabled: true
  24. type: {{ $storage.type }}
  25. datasetName: {{ $storage.datasetName | default "" }}
  26. hostPath: {{ $storage.hostPath | default "" }}
  27. targetSelector:
  28. nodered:
  29. nodered:
  30. mountPath: {{ $storage.mountPath }}
  31. 01-permissions:
  32. mountPath: /mnt/directories{{ $storage.mountPath }}
  33. {{- end }}
  34. {{- end -}}