Add validation for dataset name

This commit is contained in:
Waqar Ahmed
2021-02-02 16:46:38 +05:00
parent 9167d97343
commit 7fea12a0a6

View File

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