mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #97137 from ii/update-logging-for-pod-lifecycle-test
Update Error logging for Pod+PodStatus resource lifecycle test
This commit is contained in:
commit
868d185ffb
@ -939,10 +939,13 @@ var _ = framework.KubeDescribe("Pods", func() {
|
||||
pod.Labels["test-pod-static"] == "true" &&
|
||||
pod.Status.Phase == v1.PodRunning
|
||||
if !found {
|
||||
framework.Logf("observed Pod %v in namespace %v in phase %v conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Status.Conditions)
|
||||
framework.Logf("observed Pod %v in namespace %v in phase %v with labels: %v & conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Labels, pod.Status.Conditions)
|
||||
return false, nil
|
||||
}
|
||||
framework.Logf("Found Pod %v in namespace %v in phase %v with labels: %v & conditions %v", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace, pod.Status.Phase, pod.Labels, pod.Status.Conditions)
|
||||
return found, nil
|
||||
}
|
||||
framework.Logf("Observed event: %+v", event.Object)
|
||||
return false, nil
|
||||
})
|
||||
framework.ExpectNoError(err, "failed to see Pod %v in namespace %v running", testPod.ObjectMeta.Name, testNamespaceName)
|
||||
|
Loading…
Reference in New Issue
Block a user