Update k8s-operator/api-proxy/proxy.go

Co-authored-by: David Bond <davidsbond@users.noreply.github.com>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
This commit is contained in:
Tom Meadows 2025-09-18 14:26:36 +01:00 committed by GitHub
parent 59b929ab02
commit 444300aef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}