From 5328e60ecffda5a758d77d85187ede696e3f7ca6 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Thu, 7 Dec 2023 19:19:40 +0000 Subject: [PATCH] Add grpc reflection support Allows testing kine with grpcurl Signed-off-by: Brad Davidson --- pkg/server/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/server/server.go b/pkg/server/server.go index e75a79c1..4823c62e 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -5,6 +5,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/health" healthpb "google.golang.org/grpc/health/grpc_health_v1" + "google.golang.org/grpc/reflection" ) type KVServerBridge struct { @@ -30,4 +31,6 @@ func (k *KVServerBridge) Register(server *grpc.Server) { hsrv := health.NewServer() hsrv.SetServingStatus("", healthpb.HealthCheckResponse_SERVING) healthpb.RegisterHealthServer(server, hsrv) + + reflection.Register(server) }