mirror of https://github.com/grpc/grpc-go.git
xds/googlec2p: use xdstp names for LDS (#6949)
This commit is contained in:
parent
02858ee506
commit
3aafa84f17
|
@ -120,7 +120,8 @@ func (c2pResolverBuilder) Build(t resolver.Target, cc resolver.ClientConn, opts
|
|||
ClientDefaultListenerResourceNameTemplate: "%s",
|
||||
Authorities: map[string]*bootstrap.Authority{
|
||||
c2pAuthority: {
|
||||
XDSServer: serverConfig,
|
||||
XDSServer: serverConfig,
|
||||
ClientListenerResourceNameTemplate: "xdstp://traffic-director-c2p.xds.googleapis.com/envoy.config.listener.v3.Listener/%s",
|
||||
},
|
||||
},
|
||||
NodeProto: newNode(<-zoneCh, <-ipv6CapableCh),
|
||||
|
|
|
@ -223,7 +223,8 @@ func TestBuildXDS(t *testing.T) {
|
|||
ClientDefaultListenerResourceNameTemplate: "%s",
|
||||
Authorities: map[string]*bootstrap.Authority{
|
||||
"traffic-director-c2p.xds.googleapis.com": {
|
||||
XDSServer: wantServerConfig,
|
||||
XDSServer: wantServerConfig,
|
||||
ClientListenerResourceNameTemplate: "xdstp://traffic-director-c2p.xds.googleapis.com/envoy.config.listener.v3.Listener/%s",
|
||||
},
|
||||
},
|
||||
NodeProto: wantNode,
|
||||
|
|
Loading…
Reference in New Issue