mirror of
https://github.com/helm/helm.git
synced 2026-04-14 05:16:40 -04:00
do not check YAML if nothing was parsed
Signed-off-by: Christophe VILA <christophe.vila@thalesgroup.com>
This commit is contained in:
parent
e72e2935dd
commit
f736af95eb
1 changed files with 3 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ func Templates(linter *support.Linter, values map[string]interface{}, namespace
|
|||
// key will be raised as well
|
||||
err := yaml.Unmarshal([]byte(renderedContent), &yamlStruct)
|
||||
|
||||
if (K8sYamlStruct{}) == yamlStruct {
|
||||
continue
|
||||
}
|
||||
// If YAML linting fails, we sill progress. So we don't capture the returned state
|
||||
// on this linter run.
|
||||
linter.RunLinterRule(support.ErrorSev, fpath, validateYamlContent(err))
|
||||
|
|
|
|||
Loading…
Reference in a new issue