Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
r2k1 committed Dec 3, 2024
1 parent b1565ac commit 4e2ed8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func getPodNetworkDebugPodNameForVMSS(ctx context.Context, kube *Kubeclient, vms

func ensurePod(ctx context.Context, s *Scenario, pod *corev1.Pod) {
kube := s.Runtime.Cluster.Kube
s.T.Logf("creating pod %q", pod.Name)
_, err := kube.Typed.CoreV1().Pods(pod.Namespace).Create(ctx, pod, metav1.CreateOptions{})
require.NoErrorf(s.T, err, "failed to create pod %q", pod.Name)
s.T.Cleanup(func() {
Expand All @@ -69,5 +70,6 @@ func ensurePod(ctx context.Context, s *Scenario, pod *corev1.Pod) {
}
})
err = waitUntilPodReady(ctx, kube, pod.Name, s.T)
s.T.Logf("pod %q is ready", pod.Name)
require.NoErrorf(s.T, err, "failed to wait for pod %q to be in running state", pod.Name)
}

0 comments on commit 4e2ed8d

Please sign in to comment.