mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Add logs for Pod observations while watching for a running state
This commit is contained in:
parent
a0861aeb52
commit
080ad0990a
@ -921,6 +921,9 @@ var _ = framework.KubeDescribe("Pods", func() {
|
|||||||
pod.ObjectMeta.Namespace == testNamespaceName &&
|
pod.ObjectMeta.Namespace == testNamespaceName &&
|
||||||
pod.Labels["test-pod-static"] == "true" &&
|
pod.Labels["test-pod-static"] == "true" &&
|
||||||
pod.Status.Phase == v1.PodRunning
|
pod.Status.Phase == v1.PodRunning
|
||||||
|
if !found {
|
||||||
|
framework.Logf("observed Pod %v in namespace %v in phase %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase)
|
||||||
|
}
|
||||||
return found, nil
|
return found, nil
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user