Merge pull request #99292 from yangjunmyfm192085/run-test23

replace all occurrences of "node", nodeName to "node", klog.KRef("", nodeName)
This commit is contained in:
Kubernetes Prow Robot
2022-03-17 12:22:42 -07:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -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), "node", klog.KRef("", nodeName))
binding := &v1.Binding{
ObjectMeta: metav1.ObjectMeta{Namespace: p.Namespace, Name: p.Name, UID: p.UID},
Target: v1.ObjectReference{Kind: "Node", Name: nodeName},