From 049224264274262155c697b19014d7059584c59f Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Tue, 18 Aug 2020 11:19:16 -0700 Subject: [PATCH] Reduce linting severity for users of out-of-date kubernetes Fixes #8596 Signed-off-by: Joe Julian --- pkg/lint/rules/template.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index 0bb9f8671..10121c108 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -137,8 +137,11 @@ func Templates(linter *support.Linter, values map[string]interface{}, namespace linter.RunLinterRule(support.ErrorSev, fpath, validateYamlContent(err)) if yamlStruct != nil { - linter.RunLinterRule(support.ErrorSev, fpath, validateMetadataName(yamlStruct)) - linter.RunLinterRule(support.ErrorSev, fpath, validateNoDeprecations(yamlStruct)) + // NOTE: set to warnings to allow users to support out-of-date kubernetes + // Refs https://github.com/helm/helm/issues/8596 + linter.RunLinterRule(support.WarningSev, fpath, validateMetadataName(yamlStruct)) + linter.RunLinterRule(support.WarningSev, fpath, validateNoDeprecations(yamlStruct)) + linter.RunLinterRule(support.ErrorSev, fpath, validateMatchSelector(yamlStruct, renderedContent)) } }