Wait for first pod to termiante in local pv test

local plugin will skip setting fsGroup if volume is mounted by other pods
pull/564/head
Yecheng Fu 2019-02-11 11:55:32 +08:00
parent 3b02f17b35
commit 00a7fc3208
1 changed files with 2 additions and 0 deletions

View File

@ -537,6 +537,8 @@ func InjectHtml(client clientset.Interface, config VolumeTestConfig, volume v1.V
defer func() {
podClient.Delete(podName, nil)
err := waitForPodNotFoundInNamespace(client, podName, injectPod.Namespace, PodDeleteTimeout)
Expect(err).NotTo(HaveOccurred())
}()
injectPod, err := podClient.Create(injectPod)