e2e emptydir shared volumes wait for running but not ready

This commit is contained in:
Antonio Ojea 2021-02-17 22:17:39 +01:00
parent 0f1125d8d1
commit 3d00e9a303

View File

@ -282,7 +282,8 @@ var _ = ginkgo.Describe("[sig-storage] EmptyDir volumes", func() {
}
ginkgo.By("Creating Pod")
pod = f.PodClient().CreateSync(pod)
f.PodClient().Create(pod)
e2epod.WaitForPodNameRunningInNamespace(f.ClientSet, pod.Name, f.Namespace.Name)
ginkgo.By("Reading file content from the nginx-container")
result := f.ExecShellInContainer(pod.Name, busyBoxMainContainerName, fmt.Sprintf("cat %s", busyBoxMainVolumeFilePath))