Skip to content

Commit 080ad09

Browse files
committed
Add logs for Pod observations while watching for a running state
1 parent a0861ae commit 080ad09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/common/pods.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ var _ = framework.KubeDescribe("Pods", func() {
921921
pod.ObjectMeta.Namespace == testNamespaceName &&
922922
pod.Labels["test-pod-static"] == "true" &&
923923
pod.Status.Phase == v1.PodRunning
924+
if !found {
925+
framework.Logf("observed Pod %v in namespace %v in phase %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase)
926+
}
924927
return found, nil
925928
}
926929
return false, nil

0 commit comments

Comments
 (0)