Skip to content

Commit

Permalink
[xds_google_default_creds] xds: use google default creds
Browse files Browse the repository at this point in the history
So the client works not only on GCE (e.g. it also read env variable for creds).
  • Loading branch information
menghanl committed Jun 9, 2020
1 parent 479df5e commit 4f9aee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xds/internal/client/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func NewConfig() (*Config, error) {
config.BalancerName = xs.ServerURI
for _, cc := range xs.ChannelCreds {
if cc.Type == googleDefaultCreds {
config.Creds = grpc.WithCredentialsBundle(google.NewComputeEngineCredentials())
config.Creds = grpc.WithCredentialsBundle(google.NewDefaultCredentials())
// We stop at the first credential type that we support.
break
}
Expand Down

0 comments on commit 4f9aee7

Please sign in to comment.