From ed868652ae366ddaa3a9f520b40bf48150e0e017 Mon Sep 17 00:00:00 2001 From: NoSkillGirl Date: Thu, 24 Dec 2020 18:45:46 +0530 Subject: [PATCH] removing goroutine --- pkg/webhooks/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/webhooks/server.go b/pkg/webhooks/server.go index abf69254a6..5d5d5db3c2 100644 --- a/pkg/webhooks/server.go +++ b/pkg/webhooks/server.go @@ -378,9 +378,9 @@ func (ws *WebhookServer) ResourceMutation(request *v1beta1.AdmissionRequest) *v1 func (ws *WebhookServer) resourceValidation(request *v1beta1.AdmissionRequest) *v1beta1.AdmissionResponse { logger := ws.log.WithName("Validate").WithValues("uid", request.UID, "kind", request.Kind.Kind, "namespace", request.Namespace, "name", request.Name, "operation", request.Operation) if request.Operation == v1beta1.Delete { - go ws.handleDelete(request) + ws.handleDelete(request) } else if request.Operation == v1beta1.Update { - go ws.handleUpdate(request) + ws.handleUpdate(request) } if !ws.supportMutateValidate {