diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index 5dc6d8424..886f0031c 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -104,8 +104,6 @@ func Templates(linter *support.Linter) { if !validYaml { continue } - - linter.RunLinterRule(support.ErrorSev, path, validateNoNamespace(yamlStruct)) } } @@ -196,13 +194,6 @@ func validateYamlContent(err error) error { return nil } -func validateNoNamespace(yamlStruct K8sYamlStruct) error { - if yamlStruct.Metadata.Namespace != "" { - return errors.New("namespace option is currently NOT supported") - } - return nil -} - // K8sYamlStruct stubs a Kubernetes YAML file. // Need to access for now to Namespace only type K8sYamlStruct struct {