Files
chart/library/ix-dev/community/node-red/templates/_persistence.tpl
Stavros Kois df01fb3304 NAS-122777 / 23.10 / Add node-red to community train (#1323)
* add node-red - initial commit

* add templtes

* add ci values and questions

* run single test

* all but one

* add trace logging

* hmmmm

* root

* add tests

* no 18 for now

* update questions and chart.yaml

* fix tests

* bump common
2023-07-06 15:16:27 +03:00

35 lines
1019 B
Smarty

{{- define "nodered.persistence" -}}
persistence:
data:
enabled: true
type: {{ .Values.noderedStorage.data.type }}
datasetName: {{ .Values.noderedStorage.data.datasetName | default "" }}
hostPath: {{ .Values.noderedStorage.data.hostPath | default "" }}
targetSelector:
nodered:
nodered:
mountPath: /data
01-permissions:
mountPath: /mnt/directories/data
tmp:
enabled: true
type: emptyDir
targetSelector:
nodered:
nodered:
mountPath: /tmp
{{- range $idx, $storage := .Values.noderedStorage.additionalStorages }}
{{ printf "nodered-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
nodered:
nodered:
mountPath: {{ $storage.mountPath }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}