Commit 399f867f authored by Waqar Ahmed's avatar Waqar Ahmed

Add method to retrieve single volume configuration based on input

parent cea74cc6
{{/*
Retrieve volume configuration
*/}}
{{- define "common.volumeConfig" -}}
{{- $values := . -}}
{{- if hasKey $values "name" }}
- name: {{ $values.name }}
{{- if $values.emptyDirVolumes -}}
emptyDir: {}
{{- else -}}
hostPath:
path: {{ template "common.configuredHostPath" $values }}
{{- end -}}
{{- else -}}
{{- fail "Name must be specified for Volume Configuration" -}}
{{- end -}}
{{- end -}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment