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