diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index 26c548bac..9e38f5f22 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -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