From 444300aef8160a6d36a9c104a1bf4b044c285b67 Mon Sep 17 00:00:00 2001 From: Tom Meadows Date: Thu, 18 Sep 2025 14:26:36 +0100 Subject: [PATCH] Update k8s-operator/api-proxy/proxy.go Co-authored-by: David Bond Signed-off-by: Tom Meadows --- k8s-operator/api-proxy/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/k8s-operator/api-proxy/proxy.go b/k8s-operator/api-proxy/proxy.go index aab351774..2ea88efa2 100644 --- a/k8s-operator/api-proxy/proxy.go +++ b/k8s-operator/api-proxy/proxy.go @@ -204,8 +204,7 @@ func (ap *APIServerProxy) serveDefault(w http.ResponseWriter, r *http.Request) { return } - err = ap.recordRequestAsEvent(r, who) - if err != nil { + if err = ap.recordRequestAsEvent(r, who); err != nil { ap.log.Errorf("error recording Kubernetes API request: %v", err) return }