|
@@ -0,0 +1,11 @@
|
|
|
+{{/*
|
|
|
+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 -}}
|