mirror of https://github.com/k3s-io/k3s
fix err message in namespace_policy
parent
286bcc6f5c
commit
a319019417
|
@ -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