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}
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
}

@ -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)

Loading…
Cancel
Save