diff --git a/kubernetes/validators.go b/kubernetes/validators.go index 4acc9191ad..2b9da4f81b 100644 --- a/kubernetes/validators.go +++ b/kubernetes/validators.go @@ -21,6 +21,10 @@ func validateAnnotations(value interface{}, key string) (ws []string, es []error es = append(es, fmt.Errorf("%s (%q) %s", key, k, e)) } } + + if isInternalKey(k) { + es = append(es, fmt.Errorf("%s: %q is internal Kubernetes annotation", key, k)) + } } return }