Files
chart/library/ix-dev/community/tiny-media-manager/templates/_persistence.tpl
Stavros Kois b02d20057c NAS-123265 / 23.10 / adds tinyMediaManager to community train (#1413)
* ads `tinyMediaManager` to `community` train

* change ci values

* remove hostnet

* perm container does not exist
2023-08-03 16:35:21 +03:00

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