From 7fea12a0a658938a914faf1c7b15d9cbcb469db1 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Tue, 2 Feb 2021 16:46:38 +0500 Subject: [PATCH] Add validation for dataset name --- library/common/2101.0.0/templates/lib/storage/_appStorage.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/library/common/2101.0.0/templates/lib/storage/_appStorage.tpl b/library/common/2101.0.0/templates/lib/storage/_appStorage.tpl index 43b64320ca..84e5ed062d 100644 --- a/library/common/2101.0.0/templates/lib/storage/_appStorage.tpl +++ b/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 }}