@@ -283,7 +283,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
283283 extraTols = false
284284 By ("waiting for DaemonSet to be ready" )
285285 // note we still have the taint
286- klog .Infof ("ensuring the RTE DS is running with less pods because taints (expected pods=%d) " , len (workers )- 1 )
286+ klog .InfoS ("ensuring the RTE DS is running with less pods because taints" , "expectedPods " , len (workers )- 1 )
287287 _ , err = wait .With (fxt .Client ).Interval (10 * time .Second ).Timeout (1 * time .Minute ).ForDaemonsetPodsCreation (ctx , dsKey , len (workers )- 1 )
288288 Expect (err ).ToNot (HaveOccurred (), "daemonset %s did not start updated: %v" , dsKey .String (), err )
289289 _ , err = wait .With (fxt .Client ).Interval (10 * time .Second ).Timeout (3 * time .Minute ).ForDaemonSetReadyByKey (ctx , dsKey )
@@ -312,14 +312,14 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
312312 Expect (err ).ToNot (HaveOccurred ())
313313 tnt = & tnts [0 ]
314314
315- klog .Infof ("randomly picking the target node (among %d) " , len (workers ))
315+ klog .InfoS ("randomly picking the target node" , "totalNodes " , len (workers ))
316316 targetIdx , ok := e2efixture .PickNodeIndex (workers )
317317 Expect (ok ).To (BeTrue ())
318318 taintedNode := & workers [targetIdx ]
319319
320320 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
321321 targetNodeNames = append (targetNodeNames , taintedNode .Name )
322- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
322+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
323323
324324 By (fmt .Sprintf ("ensuring the RTE DS was created with expected pods count=%d" , len (workers )))
325325 ds , err := wait .With (fxt .Client ).Interval (time .Second ).Timeout (3 * time .Minute ).ForDaemonsetPodsCreation (ctx , dsKey , len (workers ))
@@ -340,7 +340,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
340340 _ , err = wait .With (fxt .Client ).Interval (10 * time .Second ).Timeout (3 * time .Minute ).ForDaemonSetReadyByKey (ctx , dsKey )
341341 Expect (err ).ToNot (HaveOccurred (), "failed to get the daemonset %s: %v" , dsKey .String (), err )
342342
343- klog .Infof ("verify the rte pod on node %q is evicted" , taintedNode .Name )
343+ klog .InfoS ("verify the rte pod on node is evicted" , "node " , taintedNode .Name )
344344 err = wait .With (fxt .Client ).Timeout (2 * time .Minute ).ForPodDeleted (ctx , podOnNode .Namespace , podOnNode .Name )
345345 Expect (err ).ToNot (HaveOccurred (), "pod %s/%s still exists" , podOnNode .Namespace , podOnNode .Name )
346346 })
@@ -356,14 +356,14 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
356356 Expect (err ).ToNot (HaveOccurred ())
357357 tnt = & tnts [0 ]
358358
359- klog .Infof ("randomly picking the target node (among %d) " , len (workers ))
359+ klog .InfoS ("randomly picking the target node" , "totalNodes " , len (workers ))
360360 targetIdx , ok := e2efixture .PickNodeIndex (workers )
361361 Expect (ok ).To (BeTrue ())
362362 taintedNode := & workers [targetIdx ]
363363
364364 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
365365 targetNodeNames = append (targetNodeNames , taintedNode .Name )
366- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
366+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
367367
368368 By ("add toleration to the NROP CR" )
369369 tolerateVal1 := []corev1.Toleration {
@@ -393,15 +393,15 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
393393 tnt = & tnts [0 ]
394394
395395 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
396- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
396+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
397397
398398 By (fmt .Sprintf ("waiting for daemonset %v to report correct pods' number" , dsKey .String ()))
399399 updatedDs , err := wait .With (fxt .Client ).Interval (time .Second ).Timeout (time .Minute ).ForDaemonsetPodsCreation (ctx , dsKey , len (workers )- 1 )
400400 Expect (err ).NotTo (HaveOccurred (), "pods number is not as expected for RTE daemonset: expected %d found %d" , len (workers )- 1 , updatedDs .Status .CurrentNumberScheduled )
401401 _ , err = wait .With (e2eclient .Client ).Interval (10 * time .Second ).Timeout (3 * time .Minute ).ForDaemonSetReadyByKey (ctx , dsKey )
402402 Expect (err ).ToNot (HaveOccurred (), "failed to get the daemonset ready: %v" , err )
403403
404- klog .Infof ("verify the rte pod on node %q is evicted" , taintedNode .Name )
404+ klog .InfoS ("verify the rte pod on node is evicted" , "node " , taintedNode .Name )
405405 err = wait .With (fxt .Client ).Timeout (2 * time .Minute ).ForPodDeleted (ctx , podOnNode .Namespace , podOnNode .Name )
406406 Expect (err ).ToNot (HaveOccurred (), "pod %s/%s still exists" , podOnNode .Namespace , podOnNode .Name )
407407 })
@@ -496,7 +496,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
496496
497497 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
498498 targetNodeNames = append (targetNodeNames , taintedNode .Name )
499- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
499+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
500500
501501 By ("trigger an RTE pod restart on the tainted node by deleting the pod" )
502502 ds := appsv1.DaemonSet {}
@@ -517,7 +517,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
517517 }
518518 Expect (podToDelete .Name ).NotTo (Equal ("" ), "RTE pod was not found on node %q" , taintedNode .Name )
519519
520- klog .Infof ("delete the pod %s/%s of the tainted node" , podToDelete .Namespace , podToDelete .Name )
520+ klog .InfoS ("delete the pod of the tainted node" , "namespace" , podToDelete .Namespace , "name" , podToDelete .Name )
521521 err = fxt .Client .Delete (ctx , & podToDelete )
522522 Expect (err ).ToNot (HaveOccurred ())
523523 err = wait .With (fxt .Client ).Timeout (2 * time .Minute ).ForPodDeleted (ctx , podToDelete .Namespace , podToDelete .Name )
@@ -594,7 +594,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
594594
595595 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
596596 targetNodeNames = append (targetNodeNames , taintedNode .Name )
597- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
597+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
598598 })
599599
600600 AfterEach (func (ctx context.Context ) {
@@ -729,7 +729,7 @@ var _ = Describe("[serial][disruptive][rtetols] numaresources RTE tolerations su
729729
730730 applyTaintToNode (ctx , fxt .Client , taintedNode , tnt )
731731 targetNodeNames = append (targetNodeNames , taintedNode .Name )
732- klog .Infof ("considering node: %q tainted with %q" , taintedNode .Name , tnt .String ())
732+ klog .InfoS ("considering node tainted" , "node" , taintedNode .Name , "taint" , tnt .String ())
733733
734734 By (fmt .Sprintf ("waiting for daemonset %v to report correct pods' number" , dsKey .String ()))
735735 updatedDs , err := wait .With (fxt .Client ).Interval (time .Second ).Timeout (time .Minute ).ForDaemonsetPodsCreation (ctx , dsKey , len (workers )- 1 )
@@ -819,7 +819,7 @@ func isRTEPodFoundOnNode(cli client.Client, ctx context.Context, nodeName string
819819 if podLabels ["name" ] == "resource-topology" {
820820 found = true
821821 matchingPod = pod
822- klog .Infof ("RTE pod is found: %s/%s" , pod .Namespace , pod .Name )
822+ klog .InfoS ("RTE pod is found" , "namespace" , pod .Namespace , "name" , pod .Name )
823823 break
824824 }
825825 }
@@ -930,6 +930,6 @@ func verifyUpdatedMCOnNodes(cli client.Client, ctx context.Context, node corev1.
930930 return false , fmt .Errorf ("current mc mismatch for node %q" , node .Name )
931931 }
932932
933- klog .Infof ("node %q is updated with mc %q" , node .Name , desired )
933+ klog .InfoS ("node is updated with mc" , "node" , node .Name , "mc" , desired )
934934 return true , nil
935935}
0 commit comments