From 9053d61efcde03a8e1995e19e47b33a08cb7f380 Mon Sep 17 00:00:00 2001 From: Drew Gonzales Date: Thu, 21 Mar 2024 18:55:23 -0700 Subject: [PATCH] add strict back --- pkg/lint/lint.go | 2 +- pkg/lint/rules/template.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)