fix lint not failing in windows for bad template yamls

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
pull/6757/head
Karuppiah Natarajan 6 years ago
parent 97774ee13c
commit 851e7fc314
No known key found for this signature in database
GPG Key ID: C674A28337662A96

@ -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

Loading…
Cancel
Save