Skip to content

Commit

Permalink
Printing all the pod details (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathina2 authored Jan 14, 2021
1 parent 1be9460 commit 92a65d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 92a65d5

Please sign in to comment.