mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
improve error message format for WaitForPodSuccessInNamespaceTimeout
This commit is contained in:
parent
b831df733e
commit
529ad9029d
@ -475,7 +475,7 @@ func WaitForPodSuccessInNamespaceTimeout(ctx context.Context, c clientset.Interf
|
|||||||
ginkgo.By("Saw pod success")
|
ginkgo.By("Saw pod success")
|
||||||
return true, nil
|
return true, nil
|
||||||
case v1.PodFailed:
|
case v1.PodFailed:
|
||||||
return true, gomega.StopTrying(fmt.Sprintf("pod %q failed with status: %+v", podName, pod.Status))
|
return true, gomega.StopTrying(fmt.Sprintf("pod %q failed with status: \n%s", podName, format.Object(pod.Status, 1)))
|
||||||
default:
|
default:
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user