e2e configmap wait for pod is running but not ready

This commit is contained in:
Antonio Ojea 2021-02-17 18:49:48 +01:00
parent 3967bc6942
commit 0f1125d8d1

View File

@ -213,7 +213,8 @@ var _ = ginkgo.Describe("[sig-storage] ConfigMap", func() {
})
ginkgo.By("Creating the pod")
f.PodClient().CreateSync(pod)
f.PodClient().Create(pod)
e2epod.WaitForPodNameRunningInNamespace(f.ClientSet, pod.Name, f.Namespace.Name)
pollLogs1 := func() (string, error) {
return e2epod.GetPodLogs(f.ClientSet, f.Namespace.Name, pod.Name, pod.Spec.Containers[0].Name)