Merge pull request #112597 from mythi/grpc-authority

grpc: set localhost Authority to unix client calls
This commit is contained in:
Kubernetes Prow Robot
2022-10-31 03:12:45 -07:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ func dial(unixSocketPath string) (api.DevicePluginClient, *grpc.ClientConn, erro
defer cancel()
c, err := grpc.DialContext(ctx, unixSocketPath,
grpc.WithAuthority("localhost"),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithBlock(),
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {