Files
chart/library/ix-dev/community/rust-desk/templates/_persistence.tpl
Stavros Kois 8424616d0e NAS-123927 / 24.04 / Add rust-desk to community train (#1512)
* 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
2023-09-08 23:12:42 +03:00

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 -}}