diff --git a/pkg/lint/lint.go b/pkg/lint/lint.go index c0e79f55b..1a42303a1 100644 --- a/pkg/lint/lint.go +++ b/pkg/lint/lint.go @@ -37,7 +37,7 @@ func AllWithKubeVersion(basedir string, values map[string]interface{}, namespace linter := support.Linter{ChartDir: chartDir} rules.Chartfile(&linter) rules.ValuesWithOverrides(&linter, values) - rules.TemplatesWithKubeVersion(&linter, values, namespace, kubeVersion) + rules.TemplatesWithKubeVersion(&linter, values, namespace, kubeVersion, true) rules.Dependencies(&linter) return linter } diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index e0cab5346..9afd5f5d9 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -45,12 +45,12 @@ var ( ) // Templates lints the templates in the Linter. -func Templates(linter *support.Linter, values map[string]interface{}, namespace string, _ bool) { - TemplatesWithKubeVersion(linter, values, namespace, nil) +func Templates(linter *support.Linter, values map[string]interface{}, namespace string, strict bool) { + TemplatesWithKubeVersion(linter, values, namespace, nil, strict) } // TemplatesWithKubeVersion lints the templates in the Linter, allowing to specify the kubernetes version. -func TemplatesWithKubeVersion(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion) { +func TemplatesWithKubeVersion(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, strict bool) { fpath := "templates/" templatesPath := filepath.Join(linter.ChartDir, fpath)