mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
fix err message in namespace_policy
This commit is contained in:
parent
286bcc6f5c
commit
a319019417
@ -53,7 +53,7 @@ func addNamespaceRole(namespace string, role rbac.Role) {
|
|||||||
|
|
||||||
func addNamespaceRoleBinding(namespace string, roleBinding rbac.RoleBinding) {
|
func addNamespaceRoleBinding(namespace string, roleBinding rbac.RoleBinding) {
|
||||||
if !strings.HasPrefix(namespace, "kube-") {
|
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]
|
existingRoleBindings := namespaceRoleBindings[namespace]
|
||||||
|
Loading…
Reference in New Issue
Block a user