From 8586c3626386025a164a574dd7fb0376ae3e48bf Mon Sep 17 00:00:00 2001 From: Maho Takara <takara@cybozu.co.jp> Date: Tue, 4 Jun 2024 09:15:31 +0000 Subject: [PATCH] fix syntax error --- hooks/mutate_pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/mutate_pod.go b/hooks/mutate_pod.go index ab33d31..b1a0768 100644 --- a/hooks/mutate_pod.go +++ b/hooks/mutate_pod.go @@ -50,7 +50,7 @@ func (m *podMutator) Handle(ctx context.Context, req admission.Request) admissio m.log.Info("mutating pod,", "name", namespacedName, "profile", m.profileName) po := &corev1.Pod{} - err:= m.decoder.Decode(req, po) + err := m.decoder.Decode(req, po) if err != nil { m.log.Error(err, "failed to decode pod", "name", namespacedName, "profile", m.profileName) return admission.Errored(http.StatusBadRequest, err)