mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
fix log err msg
This commit is contained in:
parent
520b991347
commit
a64b6b8551
@ -179,7 +179,7 @@ func (k *kubeManager) createNamespace(ns *v1.Namespace) (*v1.Namespace, error) {
|
||||
enforcePodSecurityBaseline(ns)
|
||||
createdNamespace, err := k.clientSet.CoreV1().Namespaces().Create(context.TODO(), ns, metav1.CreateOptions{})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to update namespace %s: %w", ns.Name, err)
|
||||
return nil, fmt.Errorf("unable to create namespace %s: %w", ns.Name, err)
|
||||
}
|
||||
return createdNamespace, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user