File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,10 @@ func areApplicationPodsRunning(namespace string) wait.ConditionFunc {
98
98
}
99
99
// get pod name and status with specified label selector
100
100
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 )))
108
105
return false , nil
109
106
}
110
107
}
You can’t perform that action at this time.
0 commit comments