Skip to content

Commit

Permalink
[xds_interop_client_admin] xds/interop: register admin services and r…
Browse files Browse the repository at this point in the history
…eflection (#4307)
  • Loading branch information
menghanl committed Apr 5, 2021
1 parent 5730f8d commit 8892a7b
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 8892a7b

Please sign in to comment.