Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use v1 admissionregistration APIs in e2e #81558

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/e2e/apimachinery/webhook.go
Expand Up @@ -412,7 +412,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
selectorListOpts := metav1.ListOptions{LabelSelector: "e2e-list-test-uuid=" + testUUID}

ginkgo.By("Listing all of the created validation webhooks")
list, err := client.AdmissionregistrationV1beta1().ValidatingWebhookConfigurations().List(selectorListOpts)
list, err := client.AdmissionregistrationV1().ValidatingWebhookConfigurations().List(selectorListOpts)
framework.ExpectNoError(err, "Listing validating webhook configurations")
framework.ExpectEqual(len(list.Items), testListSize)

Expand All @@ -433,7 +433,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
framework.ExpectNoError(err, "Waiting for configMap in namespace %s to be denied creation by validating webhook", f.Namespace.Name)

ginkgo.By("Deleting the collection of validation webhooks")
err = client.AdmissionregistrationV1beta1().ValidatingWebhookConfigurations().DeleteCollection(nil, selectorListOpts)
err = client.AdmissionregistrationV1().ValidatingWebhookConfigurations().DeleteCollection(nil, selectorListOpts)
framework.ExpectNoError(err, "Deleting collection of validating webhook configurations")

ginkgo.By("Creating a configMap that does not comply to the validation webhook rules")
Expand Down Expand Up @@ -473,7 +473,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
selectorListOpts := metav1.ListOptions{LabelSelector: "e2e-list-test-uuid=" + testUUID}

ginkgo.By("Listing all of the created validation webhooks")
list, err := client.AdmissionregistrationV1beta1().MutatingWebhookConfigurations().List(selectorListOpts)
list, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(selectorListOpts)
framework.ExpectNoError(err, "Listing mutating webhook configurations")
framework.ExpectEqual(len(list.Items), testListSize)

Expand All @@ -492,7 +492,7 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
framework.ExpectNoError(err, "Waiting for configMap in namespace %s to be mutated", f.Namespace.Name)

ginkgo.By("Deleting the collection of validation webhooks")
err = client.AdmissionregistrationV1beta1().MutatingWebhookConfigurations().DeleteCollection(nil, selectorListOpts)
err = client.AdmissionregistrationV1().MutatingWebhookConfigurations().DeleteCollection(nil, selectorListOpts)
framework.ExpectNoError(err, "Deleting collection of mutating webhook configurations")

ginkgo.By("Creating a configMap that should not be mutated")
Expand Down