@@ -85,7 +85,7 @@ var _ = SIGDescribe("Job", func() {
85
85
framework .ExpectNoError (err , "failed to create job in namespace: %s" , f .Namespace .Name )
86
86
87
87
ginkgo .By ("Ensuring job reaches completions" )
88
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonCompletionsReached ) , completions )
88
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonCompletionsReached , completions )
89
89
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
90
90
91
91
ginkgo .By ("Ensuring pods for job exist" )
@@ -182,7 +182,7 @@ var _ = SIGDescribe("Job", func() {
182
182
framework .ExpectNoError (err , "failed to create job in namespace: %s" , f .Namespace .Name )
183
183
184
184
ginkgo .By ("Ensuring job reaches completions" )
185
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , nil , completions )
185
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 . JobReasonCompletionsReached , completions )
186
186
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
187
187
})
188
188
@@ -260,7 +260,7 @@ var _ = SIGDescribe("Job", func() {
260
260
})
261
261
262
262
ginkgo .By ("Ensuring job reaches completions" )
263
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , nil , completions )
263
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 . JobReasonCompletionsReached , completions )
264
264
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
265
265
})
266
266
@@ -292,7 +292,7 @@ var _ = SIGDescribe("Job", func() {
292
292
framework .ExpectNoError (err , "failed to update job in namespace: %s" , f .Namespace .Name )
293
293
294
294
ginkgo .By ("Waiting for job to complete" )
295
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonCompletionsReached ) , completions )
295
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonCompletionsReached , completions )
296
296
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
297
297
})
298
298
@@ -417,7 +417,7 @@ done`}
417
417
framework .ExpectNoError (err , "failed to create indexed job in namespace %s" , f .Namespace .Name )
418
418
419
419
ginkgo .By ("Ensuring job reaches completions" )
420
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , nil , completions )
420
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 . JobReasonCompletionsReached , completions )
421
421
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
422
422
423
423
ginkgo .By ("Ensuring pods with index for job exist" )
@@ -458,7 +458,7 @@ done`}
458
458
framework .ExpectNoError (err , "failed to create indexed job in namespace %s" , f .Namespace .Name )
459
459
460
460
ginkgo .By ("Ensuring job reaches completions" )
461
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , nil , completions )
461
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 . JobReasonCompletionsReached , completions )
462
462
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
463
463
464
464
ginkgo .By ("Ensuring all pods have the required index labels" )
@@ -502,7 +502,7 @@ done`}
502
502
framework .ExpectNoError (err , "failed to ensure that job has SuccessCriteriaMet with SuccessPolicy reason condition" )
503
503
504
504
ginkgo .By ("Ensure that the job reaches completions" )
505
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonSuccessPolicy ) , completions )
505
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonSuccessPolicy , completions )
506
506
framework .ExpectNoError (err , "failed to ensure that job completed" )
507
507
508
508
ginkgo .By ("Verifying that the job status to ensure correct final state" )
@@ -541,7 +541,7 @@ done`}
541
541
framework .ExpectNoError (err , "failed to ensure that job has SuccessCriteriaMet with SuccessPolicy reason condition" )
542
542
543
543
ginkgo .By ("Ensure that the job reaches completions" )
544
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonSuccessPolicy ) , 1 )
544
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonSuccessPolicy , 1 )
545
545
framework .ExpectNoError (err , "failed to ensure that job completed" )
546
546
547
547
ginkgo .By ("Verifying that the only appropriately index succeeded" )
@@ -580,7 +580,7 @@ done`}
580
580
framework .ExpectNoError (err , "failed to ensure that the job has SuccessCriteriaMet condition with SuccessPolicy rule" )
581
581
582
582
ginkgo .By ("Ensure that the job reaches completions" )
583
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonSuccessPolicy ) , 1 )
583
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonSuccessPolicy , 1 )
584
584
framework .ExpectNoError (err , "failed to ensure that job completed" )
585
585
586
586
ginkgo .By ("Verifying that the job status to ensure correct final state" )
@@ -809,7 +809,7 @@ done`}
809
809
framework .ExpectNoError (err , "failed to create job in namespace: %s" , f .Namespace .Name )
810
810
811
811
ginkgo .By ("Ensuring job reaches completions" )
812
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , nil , completions )
812
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 . JobReasonCompletionsReached , completions )
813
813
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
814
814
})
815
815
@@ -840,7 +840,7 @@ done`}
840
840
framework .ExpectNoError (err , "failed to ensure job has the interim success condition: %s" , f .Namespace .Name )
841
841
842
842
ginkgo .By ("Ensuring job reaches completions" )
843
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonCompletionsReached ) , * job .Spec .Completions )
843
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonCompletionsReached , * job .Spec .Completions )
844
844
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
845
845
846
846
ginkgo .By ("Verifying the Job status fields to ensure correct final state" )
@@ -1035,7 +1035,7 @@ done`}
1035
1035
framework .ExpectNoError (err , "failed to create job in namespace: %s" , f .Namespace .Name )
1036
1036
1037
1037
ginkgo .By ("Ensuring job reaches completions" )
1038
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , ptr . To ( batchv1 .JobReasonCompletionsReached ) , completions )
1038
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , f .Namespace .Name , job .Name , batchv1 .JobReasonCompletionsReached , completions )
1039
1039
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , f .Namespace .Name )
1040
1040
1041
1041
ginkgo .By ("Ensuring pods for job exist" )
@@ -1241,7 +1241,7 @@ done`}
1241
1241
framework .Logf ("Job: %v as labels: %v" , testJob .Name , testJob .Labels )
1242
1242
1243
1243
ginkgo .By ("Waiting for job to complete" )
1244
- err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , ns , jobName , nil , completions )
1244
+ err = e2ejob .WaitForJobComplete (ctx , f .ClientSet , ns , jobName , batchv1 . JobReasonCompletionsReached , completions )
1245
1245
framework .ExpectNoError (err , "failed to ensure job completion in namespace: %s" , ns )
1246
1246
1247
1247
ginkgo .By ("Delete a job collection with a labelselector" )
0 commit comments