From 6a961f5fd85bdb0ce9bc14946d29894a0eda1c3b Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Sat, 4 Jan 2020 11:47:54 +0800 Subject: [PATCH] fix: Ignore the failure Signed-off-by: Ce Gao --- pkg/webhook/v1alpha3/webhook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/webhook/v1alpha3/webhook.go b/pkg/webhook/v1alpha3/webhook.go index 9697423204b..ec5adf323c0 100644 --- a/pkg/webhook/v1alpha3/webhook.go +++ b/pkg/webhook/v1alpha3/webhook.go @@ -113,6 +113,7 @@ func register(manager manager.Manager, server *webhook.Server) error { WithManager(manager). ForType(&v1.Pod{}). Handlers(pod.NewSidecarInjector(manager.GetClient())). + FailurePolicy(admissionregistrationv1beta1.Ignore). Build() if err != nil { return err