From 93e9f23562700410cca770b545f69ed7eb317db2 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Mon, 5 Apr 2021 13:56:00 -0700 Subject: [PATCH] xds/interop: register admin services and reflection (#4307) --- interop/xds/client/client.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interop/xds/client/client.go b/interop/xds/client/client.go index 5b755272d3e7..b028ec79228e 100644 --- a/interop/xds/client/client.go +++ b/interop/xds/client/client.go @@ -31,9 +31,11 @@ import ( "time" "google.golang.org/grpc" + "google.golang.org/grpc/admin" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" + "google.golang.org/grpc/reflection" "google.golang.org/grpc/status" _ "google.golang.org/grpc/xds" @@ -370,6 +372,12 @@ func main() { defer s.Stop() testgrpc.RegisterLoadBalancerStatsServiceServer(s, &statsService{}) testgrpc.RegisterXdsUpdateClientConfigureServiceServer(s, &configureService{}) + reflection.Register(s) + cleanup, err := admin.Register(s) + if err != nil { + logger.Fatalf("failed to register admin: %v", err) + } + defer cleanup() go s.Serve(lis) clients := make([]testgrpc.TestServiceClient, *numChannels)