Browse Source

Add validation for dataset name

Waqar Ahmed 4 năm trước cách đây
mục cha
commit
7fea12a0a6

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