_ixvolumes.tpl 354 B

1234567891011
  1. {{/*
  2. Retrieve host path from ix volumes based on dataset name
  3. */}}
  4. {{- define "common.storage.retrieveHostPathFromiXVolume" -}}
  5. {{- range $index, $hostPathConfiguration := $.ixVolumes }}
  6. {{- $dsName := base $hostPathConfiguration.hostPath -}}
  7. {{- if eq $.datasetName $dsName -}}
  8. {{- $hostPathConfiguration.hostPath -}}
  9. {{- end -}}
  10. {{- end }}
  11. {{- end -}}