cleanup: remove useless code

`failOpenHook` is validate against `configmaps`, it has nothing to
do with pod attaching.

Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
Dave Chen 2019-07-15 18:46:32 +08:00
parent 5f83eb721b
commit c540fd8b84

View File

@ -500,10 +500,6 @@ func registerWebhookForAttachingPod(f *framework.Framework, context *certContext
namespace := f.Namespace.Name
configName := attachingPodWebhookConfigName
// A webhook that cannot talk to server, with fail-open policy
failOpenHook := failingWebhook(namespace, "fail-open.k8s.io")
policyIgnore := admissionregistrationv1beta1.Ignore
failOpenHook.FailurePolicy = &policyIgnore
_, err := client.AdmissionregistrationV1beta1().ValidatingWebhookConfigurations().Create(&admissionregistrationv1beta1.ValidatingWebhookConfiguration{
ObjectMeta: metav1.ObjectMeta{