mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Optimize the use of klog.Errors
Signed-off-by: JunYang <yang.jun22@zte.com.cn>
This commit is contained in:
parent
73b68f5233
commit
b41c2881be
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ func (b DefaultBinder) Name() string {
|
|||
|
||||
// Bind binds pods to nodes using the k8s client.
|
||||
func (b DefaultBinder) Bind(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) *framework.Status {
|
||||
klog.V(3).InfoS("Attempting to bind pod to node", "pod", klog.KObj(p), "node", nodeName)
|
||||
klog.V(3).InfoS("Attempting to bind pod to node", "pod", klog.KObj(p), "nodeName", nodeName)
|
||||
binding := &v1.Binding{
|
||||
ObjectMeta: metav1.ObjectMeta{Namespace: p.Namespace, Name: p.Name, UID: p.UID},
|
||||
Target: v1.ObjectReference{Kind: "Node", Name: nodeName},
|
||||
|
|
|
|||
Loading…
Reference in a new issue