Commit 7fea12a0 authored by Waqar Ahmed's avatar Waqar Ahmed

Add validation for dataset name

parent 9167d973
...@@ -34,6 +34,7 @@ Define hostPath for appVolumes ...@@ -34,6 +34,7 @@ Define hostPath for appVolumes
{{ if $av.hostPathEnabled }} {{ if $av.hostPathEnabled }}
path: {{ required "hostPath not set" $av.hostPath }} path: {{ required "hostPath not set" $av.hostPath }}
{{- else }} {{- else }}
{{- include "common.schema.validateKeys" (dict "values" $av "checkKeys" (list "datasetName")) -}}
{{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $.Values.ixVolumes -}} {{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $.Values.ixVolumes -}}
path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }} path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }}
{{- 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