Commit 0a4903b0 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #46685 from xilabao/fix-err-message-in-namespace_policy

Automatic merge from submit-queue fix err message in namespace_policy **What this PR does / why we need it**: **Which issue this PR fixes**: fixes #49541 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 15842f37 a3190194
......@@ -53,7 +53,7 @@ func addNamespaceRole(namespace string, role rbac.Role) {
func addNamespaceRoleBinding(namespace string, roleBinding rbac.RoleBinding) {
if !strings.HasPrefix(namespace, "kube-") {
glog.Fatalf(`roles can only be bootstrapped into reserved namespaces starting with "kube-", not %q`, namespace)
glog.Fatalf(`rolebindings can only be bootstrapped into reserved namespaces starting with "kube-", not %q`, namespace)
}
existingRoleBindings := namespaceRoleBindings[namespace]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment