Skip to content

Commit 79d128a

Browse files
authored
Merge pull request kubernetes#80166 from chendave/webhook
cleanup: remove useless code
2 parents 10005d2 + c540fd8 commit 79d128a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/e2e/apimachinery/webhook.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,6 @@ func registerWebhookForAttachingPod(f *framework.Framework, context *certContext
500500

501501
namespace := f.Namespace.Name
502502
configName := attachingPodWebhookConfigName
503-
// A webhook that cannot talk to server, with fail-open policy
504-
failOpenHook := failingWebhook(namespace, "fail-open.k8s.io")
505-
policyIgnore := admissionregistrationv1beta1.Ignore
506-
failOpenHook.FailurePolicy = &policyIgnore
507503

508504
_, err := client.AdmissionregistrationV1beta1().ValidatingWebhookConfigurations().Create(&admissionregistrationv1beta1.ValidatingWebhookConfiguration{
509505
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)