Browse Source

Add validation for dataset name

Waqar Ahmed 4 years ago
parent
commit
7fea12a0a6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      library/common/2101.0.0/templates/lib/storage/_appStorage.tpl

+ 1 - 0
library/common/2101.0.0/templates/lib/storage/_appStorage.tpl

@@ -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 }}