mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
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 ```
This commit is contained in:
commit
0a4903b0e0
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user