mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Update e2e test logging to include pod labels
This commit is contained in:
parent
c1f36fa6f2
commit
b2a3b25954
@ -939,8 +939,10 @@ var _ = framework.KubeDescribe("Pods", func() {
|
||||
pod.Labels["test-pod-static"] == "true" &&
|
||||
pod.Status.Phase == v1.PodRunning
|
||||
if !found {
|
||||
framework.Logf("observed Pod %v in namespace %v in phase %v conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Status.Conditions)
|
||||
framework.Logf("observed Pod %v in namespace %v in phase %v with labels: %v & conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Labels, pod.Status.Conditions)
|
||||
return false, nil
|
||||
}
|
||||
framework.Logf("Found Pod %v in namespace %v in phase %v with labels: %v & conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Labels, pod.Status.Conditions)
|
||||
return found, nil
|
||||
}
|
||||
return false, nil
|
||||
|
Loading…
Reference in New Issue
Block a user