Printing all the pod details
@@ -269,7 +269,7 @@ func WaitForPodCompletion(ctx context.Context, cli kubernetes.Interface, namespa
case v1.PodRunning:
for _, con := range p.Status.ContainerStatuses {
if con.State.Terminated != nil {
- return false, errors.Errorf("Container %v is terminated, while Pod %v is Running. Container termination status: %v", con.Name, name, con.State.Terminated)
+ return false, errors.Errorf("Container %v is terminated, while Pod %v is Running. Container termination status: %v. Pod details (%s)", con.Name, name, con.State.Terminated, p.String())
}
}
case v1.PodFailed:
