@@ -148,7 +148,7 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
148
148
fmtPod = testPDPod ([]string {diskName }, host0Name , false , 1 )
149
149
_ , err = podClient .Create (context .TODO (), fmtPod , metav1.CreateOptions {})
150
150
framework .ExpectNoError (err , "Failed to create fmtPod" )
151
- framework .ExpectNoError (f . WaitForPodRunningSlow ( fmtPod .Name ))
151
+ framework .ExpectNoError (e2epod . WaitForPodRunningInNamespaceSlow ( f . ClientSet , fmtPod . Name , f . Namespace .Name ))
152
152
153
153
ginkgo .By ("deleting the fmtPod" )
154
154
framework .ExpectNoError (podClient .Delete (context .TODO (), fmtPod .Name , * metav1 .NewDeleteOptions (0 )), "Failed to delete fmtPod" )
@@ -176,7 +176,7 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
176
176
ginkgo .By ("creating host0Pod on node0" )
177
177
_ , err = podClient .Create (context .TODO (), host0Pod , metav1.CreateOptions {})
178
178
framework .ExpectNoError (err , fmt .Sprintf ("Failed to create host0Pod: %v" , err ))
179
- framework .ExpectNoError (f . WaitForPodRunningSlow ( host0Pod .Name ))
179
+ framework .ExpectNoError (e2epod . WaitForPodRunningInNamespaceSlow ( f . ClientSet , host0Pod . Name , f . Namespace .Name ))
180
180
framework .Logf ("host0Pod: %q, node0: %q" , host0Pod .Name , host0Name )
181
181
182
182
var containerName , testFile , testFileContents string
@@ -200,7 +200,7 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
200
200
ginkgo .By ("creating host1Pod on node1" )
201
201
_ , err = podClient .Create (context .TODO (), host1Pod , metav1.CreateOptions {})
202
202
framework .ExpectNoError (err , "Failed to create host1Pod" )
203
- framework .ExpectNoError (f . WaitForPodRunningSlow ( host1Pod .Name ))
203
+ framework .ExpectNoError (e2epod . WaitForPodRunningInNamespaceSlow ( f . ClientSet , host1Pod . Name , f . Namespace .Name ))
204
204
framework .Logf ("host1Pod: %q, node1: %q" , host1Pod .Name , host1Name )
205
205
206
206
if readOnly {
@@ -282,7 +282,7 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
282
282
host0Pod = testPDPod (diskNames , host0Name , false /* readOnly */ , numContainers )
283
283
_ , err = podClient .Create (context .TODO (), host0Pod , metav1.CreateOptions {})
284
284
framework .ExpectNoError (err , fmt .Sprintf ("Failed to create host0Pod: %v" , err ))
285
- framework .ExpectNoError (f . WaitForPodRunningSlow ( host0Pod .Name ))
285
+ framework .ExpectNoError (e2epod . WaitForPodRunningInNamespaceSlow ( f . ClientSet , host0Pod . Name , f . Namespace .Name ))
286
286
287
287
ginkgo .By (fmt .Sprintf ("writing %d file(s) via a container" , numPDs ))
288
288
containerName := "mycontainer"
@@ -385,7 +385,7 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
385
385
_ , err = podClient .Create (context .TODO (), host0Pod , metav1.CreateOptions {})
386
386
framework .ExpectNoError (err , fmt .Sprintf ("Failed to create host0Pod: %v" , err ))
387
387
ginkgo .By ("waiting for host0Pod to be running" )
388
- framework .ExpectNoError (f . WaitForPodRunningSlow ( host0Pod .Name ))
388
+ framework .ExpectNoError (e2epod . WaitForPodRunningInNamespaceSlow ( f . ClientSet , host0Pod . Name , f . Namespace .Name ))
389
389
390
390
ginkgo .By ("writing content to host0Pod" )
391
391
testFile := "/testpd1/tracker"
0 commit comments