From 0645f0e50ec848af731c8f5a33b86f9e1aa39879 Mon Sep 17 00:00:00 2001 From: Daman Arora Date: Thu, 19 Dec 2024 15:29:40 +0530 Subject: [PATCH] pkg/proxy/healthcheck: file rename Signed-off-by: Daman Arora --- .../healthcheck/{proxier_health.go => proxy_health.go} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename pkg/proxy/healthcheck/{proxier_health.go => proxy_health.go} (97%) diff --git a/pkg/proxy/healthcheck/proxier_health.go b/pkg/proxy/healthcheck/proxy_health.go similarity index 97% rename from pkg/proxy/healthcheck/proxier_health.go rename to pkg/proxy/healthcheck/proxy_health.go index 9fbe4fc0331..bb61adf22dc 100644 --- a/pkg/proxy/healthcheck/proxier_health.go +++ b/pkg/proxy/healthcheck/proxy_health.go @@ -171,13 +171,13 @@ func (hs *ProxyHealthServer) Run(ctx context.Context) error { listener, err := hs.listener.Listen(ctx, hs.addr) if err != nil { - return fmt.Errorf("failed to start proxy healthz on %s: %v", hs.addr, err) + return fmt.Errorf("failed to start proxy healthz on %s: %w", hs.addr, err) } klog.V(3).InfoS("Starting healthz HTTP server", "address", hs.addr) if err := server.Serve(listener); err != nil { - return fmt.Errorf("proxy healthz closed with error: %v", err) + return fmt.Errorf("proxy healthz closed with error: %w", err) } return nil } @@ -186,7 +186,7 @@ type healthzHandler struct { hs *ProxyHealthServer } -func (h healthzHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) { +func (h healthzHandler) ServeHTTP(resp http.ResponseWriter, _ *http.Request) { nodeEligible := h.hs.NodeEligible() healthy, lastUpdated := h.hs.isHealthy() currentTime := h.hs.clock.Now()