mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 19:16:17 +08:00
* ads `tinyMediaManager` to `community` train * change ci values * remove hostnet * perm container does not exist
31 lines
818 B
Smarty
31 lines
818 B
Smarty
{{- define "tmm.persistence" -}}
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
type: {{ .Values.tmmStorage.data.type }}
|
|
datasetName: {{ .Values.tmmStorage.data.datasetName | default "" }}
|
|
hostPath: {{ .Values.tmmStorage.data.hostPath | default "" }}
|
|
targetSelector:
|
|
tmm:
|
|
tmm:
|
|
mountPath: /data
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
tmm:
|
|
tmm:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.tmmStorage.additionalStorages }}
|
|
{{ printf "tmm-%v" (int $idx) }}:
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
targetSelector:
|
|
tmm:
|
|
tmm:
|
|
mountPath: {{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|