From 680e50fb3d4bb7d0ef5b00ae78a36a83d9767a72 Mon Sep 17 00:00:00 2001 From: Federico Tedin Date: Wed, 27 Nov 2024 15:16:16 +0100 Subject: [PATCH] Add health headers --- pkg/grpc/grpc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/grpc/grpc.go b/pkg/grpc/grpc.go index a9de020..1f4c4ef 100644 --- a/pkg/grpc/grpc.go +++ b/pkg/grpc/grpc.go @@ -49,6 +49,8 @@ func (s *Server) listenHealthz() { mux := http.NewServeMux() mux.HandleFunc("/grpchealthz", func(w http.ResponseWriter, req *http.Request) { w.WriteHeader(http.StatusNoContent) + w.Header().Set("grpc-status", "12") + w.Header().Set("grpc-message", "unimplemented") }) health := &http.Server{