fix lint not failing in windows for bad template yamls

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
pull/6755/head
Karuppiah Natarajan 6 years ago
parent 9668ad4d90
commit c6935d8cce
No known key found for this signature in database
GPG Key ID: C674A28337662A96

@ -106,7 +106,8 @@ func Templates(linter *support.Linter, values []byte, namespace string, strict b
continue
}
renderedContent := renderedContentMap[filepath.Join(chart.GetMetadata().Name, fileName)]
templatePath := filepath.Join(chart.GetMetadata().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

Loading…
Cancel
Save