Raise an error if the `templates/` dir is not valid and return early.

Signed-off-by: Zach Burgess <zachburg@google.com>
pull/31019/head
Zach Burgess 2 months ago
parent 6e30619d8f
commit eea2d4577b

@ -59,7 +59,10 @@ func TemplatesWithSkipSchemaValidation(linter *support.Linter, values map[string
return
}
linter.RunLinterRule(support.WarningSev, fpath, validateTemplatesDir(templatesPath))
validTemplatesDir := linter.RunLinterRule(support.ErrorSev, fpath, validateTemplatesDir(templatesPath))
if !validTemplatesDir {
return
}
// Load chart and parse templates
chart, err := loader.Load(linter.ChartDir)

Loading…
Cancel
Save