Skip to content

Commit

Permalink
xds/interop: register admin services and reflection (#4307) (#4320)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Apr 6, 2021
1 parent 4a19753 commit 03fa67a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interop/xds/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 03fa67a

Please sign in to comment.