@@ -412,7 +412,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
412
412
selectorListOpts := metav1.ListOptions {LabelSelector : "e2e-list-test-uuid=" + testUUID }
413
413
414
414
ginkgo .By ("Listing all of the created validation webhooks" )
415
- list , err := client .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().List (selectorListOpts )
415
+ list , err := client .AdmissionregistrationV1 ().ValidatingWebhookConfigurations ().List (selectorListOpts )
416
416
framework .ExpectNoError (err , "Listing validating webhook configurations" )
417
417
framework .ExpectEqual (len (list .Items ), testListSize )
418
418
@@ -433,7 +433,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
433
433
framework .ExpectNoError (err , "Waiting for configMap in namespace %s to be denied creation by validating webhook" , f .Namespace .Name )
434
434
435
435
ginkgo .By ("Deleting the collection of validation webhooks" )
436
- err = client .AdmissionregistrationV1beta1 ().ValidatingWebhookConfigurations ().DeleteCollection (nil , selectorListOpts )
436
+ err = client .AdmissionregistrationV1 ().ValidatingWebhookConfigurations ().DeleteCollection (nil , selectorListOpts )
437
437
framework .ExpectNoError (err , "Deleting collection of validating webhook configurations" )
438
438
439
439
ginkgo .By ("Creating a configMap that does not comply to the validation webhook rules" )
@@ -473,7 +473,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
473
473
selectorListOpts := metav1.ListOptions {LabelSelector : "e2e-list-test-uuid=" + testUUID }
474
474
475
475
ginkgo .By ("Listing all of the created validation webhooks" )
476
- list , err := client .AdmissionregistrationV1beta1 ().MutatingWebhookConfigurations ().List (selectorListOpts )
476
+ list , err := client .AdmissionregistrationV1 ().MutatingWebhookConfigurations ().List (selectorListOpts )
477
477
framework .ExpectNoError (err , "Listing mutating webhook configurations" )
478
478
framework .ExpectEqual (len (list .Items ), testListSize )
479
479
@@ -492,7 +492,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
492
492
framework .ExpectNoError (err , "Waiting for configMap in namespace %s to be mutated" , f .Namespace .Name )
493
493
494
494
ginkgo .By ("Deleting the collection of validation webhooks" )
495
- err = client .AdmissionregistrationV1beta1 ().MutatingWebhookConfigurations ().DeleteCollection (nil , selectorListOpts )
495
+ err = client .AdmissionregistrationV1 ().MutatingWebhookConfigurations ().DeleteCollection (nil , selectorListOpts )
496
496
framework .ExpectNoError (err , "Deleting collection of mutating webhook configurations" )
497
497
498
498
ginkgo .By ("Creating a configMap that should not be mutated" )
0 commit comments