1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- {{/*
- Retrieve host path from ix volumes based on dataset name
- */}}
- {{- define "retrieveHostPathFromiXVolume" -}}
- {{- range $index, $hostPathConfiguration := $.ixVolumes }}
- {{- $dsName := base $hostPathConfiguration.hostPath -}}
- {{- if eq $.datasetName $dsName -}}
- {{- $hostPathConfiguration.hostPath -}}
- {{- end -}}
- {{- end }}
- {{- end -}}
- {{/*
- Retrieve host path for transcode
- Let's please remove the redundancy
- */}}
- {{- define "configuredHostPathTranscode" -}}
- {{- if .Values.transcodeHostPathEnabled -}}
- {{- .Values.transcodeHostPath -}}
- {{- else -}}
- {{- $volDict := dict "datasetName" $.Values.transcodeVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
- {{- include "retrieveHostPathFromiXVolume" $volDict -}}
- {{- end -}}
- {{- end -}}
- {{/*
- Retrieve host path for data
- Let's please remove the redundancy
- */}}
- {{- define "configuredHostPathData" -}}
- {{- if .Values.dataHostPathEnabled -}}
- {{- .Values.dataHostPath -}}
- {{- else -}}
- {{- $volDict := dict "datasetName" $.Values.dataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
- {{- include "retrieveHostPathFromiXVolume" $volDict -}}
- {{- end -}}
- {{- end -}}
- {{/*
- Retrieve host path for transcode
- Let's please remove the redundancy
- */}}
- {{- define "configuredHostPathConfig" -}}
- {{- if .Values.configHostPathEnabled -}}
- {{- .Values.configHostPath -}}
- {{- else -}}
- {{- $volDict := dict "datasetName" $.Values.configVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
- {{- include "retrieveHostPathFromiXVolume" $volDict -}}
- {{- end -}}
- {{- end -}}
|