From 4752cb20b2c89a092958ef1b4bc4990713b0d25e 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 36230c4ee..8b35a6968 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -100,7 +100,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)] var yamlStruct K8sYamlStruct // Even though K8sYamlStruct only defines Metadata namespace, an error in any other // key will be raised as well