From 64be3ad495bde4c320aee551094bc9ec326de4da Mon Sep 17 00:00:00 2001 From: lvjiawei Date: Tue, 31 Mar 2020 14:50:47 +0800 Subject: [PATCH] Use WebhookMainWithContext as webhook main method Fixes: #256 --- cmd/webhook/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go index fcf75e718..3b75cd129 100644 --- a/cmd/webhook/main.go +++ b/cmd/webhook/main.go @@ -115,7 +115,7 @@ func main() { SecretName: "webhook-certs", }) - sharedmain.MainWithContext(ctx, "webhook", + sharedmain.WebhookMainWithContext(ctx, "webhook", certificates.NewController, NewDefaultingAdmissionController, NewValidationAdmissionController,