Skip to content

Commit

Permalink
let XDS bootstrap set default values for node
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Mar 20, 2024
1 parent b5787ea commit a3b44e2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions xds/googledirectpath/googlec2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"net/url"
"time"

"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal/envconfig"
"google.golang.org/grpc/internal/googlecloud"
Expand Down Expand Up @@ -167,19 +166,15 @@ func newNodeConfig(zone string, ipv6Capable bool) string {
if ipv6Capable {
metadata = fmt.Sprintf(`, "metadata": { "%s": true }`, ipv6CapableMetadataName)
}

return fmt.Sprintf(`
{
"id": "%s",
"user_agent_name": "%s",
"UserAgentVersionType": {
"userAgentVersion": "%s"
},
"client_features": ["%s", "%s"],
"locality": {
"zone": "%s"
}
%s
}`, id, gRPCUserAgentName, grpc.Version, clientFeatureNoOverprovisioning, clientFeatureResourceWrapper, zone, metadata)
}`, id, zone, metadata)
}

func newAuthoritiesConfig(xdsServer string) string {
Expand Down

0 comments on commit a3b44e2

Please sign in to comment.