From 3c22c2b72600370a9075ba5e0362584898d0a66d Mon Sep 17 00:00:00 2001 From: Dong Gang Date: Tue, 27 Oct 2020 10:10:01 +0800 Subject: [PATCH] Fix helm-lint print only one error Signed-off-by: Dong Gang --- pkg/lint/rules/template.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index 5de0819c4..59fb6f6d5 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -55,11 +55,7 @@ func Templates(linter *support.Linter, values map[string]interface{}, namespace // Load chart and parse templates chart, err := loader.Load(linter.ChartDir) - chartLoaded := linter.RunLinterRule(support.ErrorSev, fpath, err) - - if !chartLoaded { - return - } + linter.RunLinterRule(support.ErrorSev, fpath, err) options := chartutil.ReleaseOptions{ Name: "test-release",