From 851e7fc3145970163ede3cb0e1972b03f517a8f8 Mon Sep 17 00:00:00 2001 From: Karuppiah Natarajan Date: Sun, 29 Sep 2019 14:03:29 +0530 Subject: [PATCH] fix lint not failing in windows for bad template yamls Signed-off-by: Karuppiah Natarajan --- pkg/lint/rules/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index cf8b4f84b..d06cbf063 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -119,7 +119,8 @@ func Templates(linter *support.Linter, values map[string]interface{}, namespace // NOTE: disabled for now, Refs https://github.com/helm/helm/issues/1037 // linter.RunLinterRule(support.WarningSev, path, validateQuotes(string(preExecutedTemplate))) - renderedContent := renderedContentMap[filepath.Join(chart.Name(), fileName)] + templatePath := filepath.Join(chart.Name(), fileName) + renderedContent := renderedContentMap[filepath.ToSlash(templatePath)] if strings.TrimSpace(renderedContent) != "" { var yamlStruct K8sYamlStruct // Even though K8sYamlStruct only defines a few fields, an error in any other