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