add strict back

pull/11760/head
Drew Gonzales 2 years ago
parent 9c48471e59
commit 9053d61efc
No known key found for this signature in database

@ -37,7 +37,7 @@ func AllWithKubeVersion(basedir string, values map[string]interface{}, namespace
linter := support.Linter{ChartDir: chartDir} linter := support.Linter{ChartDir: chartDir}
rules.Chartfile(&linter) rules.Chartfile(&linter)
rules.ValuesWithOverrides(&linter, values) rules.ValuesWithOverrides(&linter, values)
rules.TemplatesWithKubeVersion(&linter, values, namespace, kubeVersion) rules.TemplatesWithKubeVersion(&linter, values, namespace, kubeVersion, true)
rules.Dependencies(&linter) rules.Dependencies(&linter)
return linter return linter
} }

@ -45,12 +45,12 @@ var (
) )
// Templates lints the templates in the Linter. // Templates lints the templates in the Linter.
func Templates(linter *support.Linter, values map[string]interface{}, namespace string, _ bool) { func Templates(linter *support.Linter, values map[string]interface{}, namespace string, strict bool) {
TemplatesWithKubeVersion(linter, values, namespace, nil) TemplatesWithKubeVersion(linter, values, namespace, nil, strict)
} }
// TemplatesWithKubeVersion lints the templates in the Linter, allowing to specify the kubernetes version. // 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/" fpath := "templates/"
templatesPath := filepath.Join(linter.ChartDir, fpath) templatesPath := filepath.Join(linter.ChartDir, fpath)

Loading…
Cancel
Save