From 2d1877c97b6d97c9b50c1d40bf04b088186790fe Mon Sep 17 00:00:00 2001 From: carlory Date: Thu, 7 Sep 2023 16:45:53 +0800 Subject: [PATCH] fix breaking pv creation when the validation webhook exists --- test/e2e/apimachinery/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/webhook.go b/test/e2e/apimachinery/webhook.go index 9b79d8979fe..b25a2d09006 100644 --- a/test/e2e/apimachinery/webhook.go +++ b/test/e2e/apimachinery/webhook.go @@ -945,7 +945,7 @@ func newValidatingWebhookWithMatchConditions( Rule: admissionregistrationv1.Rule{ APIGroups: []string{""}, APIVersions: []string{"v1"}, - Resources: []string{"*"}, + Resources: []string{"configmaps"}, }, }}, ClientConfig: admissionregistrationv1.WebhookClientConfig{