From 819faa39489b60f17090ae4dd1a9c57c5fccdc03 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Fri, 21 May 2021 00:20:08 +0200 Subject: [PATCH] fix(k8s/proxy): proxy healthz request to k8s api (#5090) --- api/http/handler/endpointproxy/proxy_kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/endpointproxy/proxy_kubernetes.go b/api/http/handler/endpointproxy/proxy_kubernetes.go index ed5b1a28b..1f6ed3bfd 100644 --- a/api/http/handler/endpointproxy/proxy_kubernetes.go +++ b/api/http/handler/endpointproxy/proxy_kubernetes.go @@ -77,5 +77,5 @@ func (handler *Handler) proxyRequestsToKubernetesAPI(w http.ResponseWriter, r *h } func isKubernetesRequest(requestURL string) bool { - return strings.HasPrefix(requestURL, "/api") + return strings.HasPrefix(requestURL, "/api") || strings.HasPrefix(requestURL, "/healthz") }