From 25d3c73162043b3bce4a0e993b6d502fc4a4fd95 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 23 Apr 2021 22:47:39 -0700 Subject: [PATCH] add HEAD for cluster healthcheck (#12140) fixes #12130 Signed-off-by: Harshavardhana --- cmd/healthcheck-router.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/healthcheck-router.go b/cmd/healthcheck-router.go index f68b5edd1..8b921ba2e 100644 --- a/cmd/healthcheck-router.go +++ b/cmd/healthcheck-router.go @@ -40,7 +40,9 @@ func registerHealthCheckRouter(router *mux.Router) { // Cluster check handler to verify cluster is active healthRouter.Methods(http.MethodGet).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler)) + healthRouter.Methods(http.MethodHead).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler)) healthRouter.Methods(http.MethodGet).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler)) + healthRouter.Methods(http.MethodHead).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler)) // Liveness handler healthRouter.Methods(http.MethodGet).Path(healthCheckLivenessPath).HandlerFunc(httpTraceAll(LivenessCheckHandler))