fix(linter): remove spurious namespace error

Long ago, Helm did not support cross-namespace installs. There was a
linter rule to catch this. When we changed the way Helm worked, we did
not remove the linter rule. This commit removes that linter rule.

Closes #1489
pull/1491/head
Matt Butcher 8 years ago
parent 846011b02a
commit 58164e0009
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

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

Loading…
Cancel
Save