Skip to content

Commit fc16707

Browse files
authored
dumppodstatus (#550)
1 parent af5ade5 commit fc16707

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/e2e/apps.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,10 @@ func areApplicationPodsRunning(namespace string) wait.ConditionFunc {
9898
}
9999
// get pod name and status with specified label selector
100100
for _, podInfo := range podList.Items {
101-
status := podInfo.Status.Phase
102-
if status != corev1.PodRunning && status != corev1.PodSucceeded {
103-
for _, condition := range podInfo.Status.Conditions {
104-
if len(condition.Message) > 0 {
105-
ginkgo.GinkgoWriter.Write([]byte(fmt.Sprintf("Pod not running with condition: %s\n", condition.Message)))
106-
}
107-
}
101+
phase := podInfo.Status.Phase
102+
if phase != corev1.PodRunning && phase != corev1.PodSucceeded {
103+
ginkgo.GinkgoWriter.Write([]byte(fmt.Sprintf("Pod %v not yet succeeded", podInfo.Name)))
104+
ginkgo.GinkgoWriter.Write([]byte(fmt.Sprintf("status: %v", podInfo.Status)))
108105
return false, nil
109106
}
110107
}

0 commit comments

Comments
 (0)