Skip to content

Commit a3b44e2

Browse files
committed
let XDS bootstrap set default values for node
1 parent b5787ea commit a3b44e2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

xds/googledirectpath/googlec2p.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"net/url"
3131
"time"
3232

33-
"google.golang.org/grpc"
3433
"google.golang.org/grpc/grpclog"
3534
"google.golang.org/grpc/internal/envconfig"
3635
"google.golang.org/grpc/internal/googlecloud"
@@ -167,19 +166,15 @@ func newNodeConfig(zone string, ipv6Capable bool) string {
167166
if ipv6Capable {
168167
metadata = fmt.Sprintf(`, "metadata": { "%s": true }`, ipv6CapableMetadataName)
169168
}
169+
170170
return fmt.Sprintf(`
171171
{
172172
"id": "%s",
173-
"user_agent_name": "%s",
174-
"UserAgentVersionType": {
175-
"userAgentVersion": "%s"
176-
},
177-
"client_features": ["%s", "%s"],
178173
"locality": {
179174
"zone": "%s"
180175
}
181176
%s
182-
}`, id, gRPCUserAgentName, grpc.Version, clientFeatureNoOverprovisioning, clientFeatureResourceWrapper, zone, metadata)
177+
}`, id, zone, metadata)
183178
}
184179

185180
func newAuthoritiesConfig(xdsServer string) string {

0 commit comments

Comments
 (0)