From 3dceb5eef1f9504f4ec310187a2f14c327ec4e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Fa=C3=9Fbender?= Date: Tue, 14 Sep 2021 09:22:19 +0200 Subject: [PATCH] don't return when there is only a warning --- internal/controller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/controller.go b/internal/controller.go index 97aeeed..1560102 100644 --- a/internal/controller.go +++ b/internal/controller.go @@ -41,21 +41,18 @@ func (controller *Controller) HandleMutate(w http.ResponseWriter, r *http.Reques if err != nil { kind = "unknown" controller.Sugar.Warnf("Error retrieving kind") - return } namespace, err := jsonparser.GetString(body, "request", "object", "metadata", "namespace") if err != nil { namespace = "unknown" controller.Sugar.Warnf("Error retrieving namespace") - return } name, err := jsonparser.GetString(body, "request", "object", "metadata", "name") if err != nil { name = "unknown" controller.Sugar.Warnf("Error retrieving name") - return } controller.Sugar.Infof("got a mutation request for kind=%s, namespace=%s, name=%s", kind, namespace, name)