mirror of
https://github.com/truenas/charts.git
synced 2026-04-09 21:59:10 +08:00
* Add `rust-desk` to `community` train * typo * fix ports * fix few things * add ui * no portal * add opton for onyl encrypted conns * typo * fix strateg * fix flake
34 lines
1004 B
Smarty
34 lines
1004 B
Smarty
{{- define "rust.persistence" -}}
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
type: {{ .Values.rustStorage.data.type }}
|
|
datasetName: {{ .Values.rustStorage.data.datasetName | default "" }}
|
|
hostPath: {{ .Values.rustStorage.data.hostPath | default "" }}
|
|
targetSelector:
|
|
server:
|
|
server:
|
|
mountPath: /root
|
|
01-permissions:
|
|
mountPath: /mnt/directories/data
|
|
relay:
|
|
relay:
|
|
mountPath: /root
|
|
{{- range $idx, $storage := .Values.rustStorage.additionalStorages }}
|
|
{{ printf "rust-%v" (int $idx) }}:
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
targetSelector:
|
|
server:
|
|
server:
|
|
mountPath: {{ $storage.mountPath }}
|
|
01-permissions:
|
|
mountPath: /mnt/directories{{ $storage.mountPath }}
|
|
relay:
|
|
relay:
|
|
mountPath: {{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|