read-health check endpoint returns success if cluster can serve read requests (#11310)

This commit is contained in:
Krishna Srinivas
2021-02-09 01:00:44 -08:00
committed by GitHub
parent 3d74efa6b1
commit 876b79b8d8
8 changed files with 98 additions and 7 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ func guessIsHealthCheckReq(req *http.Request) bool {
return aType == authTypeAnonymous && (req.Method == http.MethodGet || req.Method == http.MethodHead) &&
(req.URL.Path == healthCheckPathPrefix+healthCheckLivenessPath ||
req.URL.Path == healthCheckPathPrefix+healthCheckReadinessPath ||
req.URL.Path == healthCheckPathPrefix+healthCheckClusterPath)
req.URL.Path == healthCheckPathPrefix+healthCheckClusterPath ||
req.URL.Path == healthCheckPathPrefix+healthCheckClusterReadPath)
}
// guessIsMetricsReq - returns true if incoming request looks