mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-01 05:43:54 +00:00
Automatic merge from submit-queue [kubelet test] Improve node status test debug info I find the output format `%v` of glog couldn't output useful information of an `api.Node` object. The output of this line https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_node_status_test.go#L492 is ``` kubelet_node_status_test.go:491: expected &TypeMeta{Kind:,APIVersion:,} , got &TypeMeta{Kind:,APIVersion:,} ``` - It's difficult for me to tell the difference between expected and got. - I prefer to use `diff.ObjectDiff(expectedNode, updatedNode)` to output the debug information as it will point out the starting character of the different objects. I think this line https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_node_status_test.go#L647 can use `diff.ObjectDiff()` as well. The related issus is #30952