Skip to content

Commit 6f97d06

Browse files
committed
add device-plugin-test e2e log
Signed-off-by: rongfu.leng <[email protected]>
1 parent 25d6f76 commit 6f97d06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: test/e2e_node/device_plugin_test.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,13 @@ func checkPodResourcesAssignment(v1PodRes *kubeletpodresourcesv1.ListPodResource
10651065
return matchContainerDevices(podNamespace+"/"+podName+"/"+containerName, contRes.Devices, resourceName, devs)
10661066
}
10671067
}
1068-
err := fmt.Errorf("no resources found for %s/%s/%s", podNamespace, podName, containerName)
1068+
v1PodResStr := ""
1069+
for _, p := range v1PodRes.PodResources {
1070+
for _, c := range p.Containers {
1071+
v1PodResStr += fmt.Sprintf("%s/%s/%s,", p.Namespace, p.Name, c.Name)
1072+
}
1073+
}
1074+
err := fmt.Errorf("no resources found for %s/%s/%s in listpodresources [%s]", podNamespace, podName, containerName, v1PodResStr)
10691075
framework.Logf("%v", err)
10701076
return err, false
10711077
}

0 commit comments

Comments
 (0)