Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transport): Use NewComputeEngineCredsWithOptions to replace NewComputeEngineCredentials #1224

Closed
wants to merge 5 commits into from

Conversation

mohanli-ml
Copy link
Contributor

@mohanli-ml mohanli-ml commented Sep 14, 2021

Use a new API NewDirectPathCredentials instead of NewComputeEngineCredentials. See context in grpc-go: grpc/grpc-go#4767.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 14, 2021
@@ -144,7 +144,7 @@ func dial(ctx context.Context, insecure bool, o *internal.DialSettings) (*grpc.C
}
grpcOpts = []grpc.DialOption{
grpc.WithCredentialsBundle(
grpcgoogle.NewComputeEngineCredentials(),
grpcgoogle.NewComputeEngineCredentials(oauth.TokenSource{creds.TokenSource}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code does not compile, this method does not take any arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we will need to wait for grpc/grpc-go#4767. You may want to add a do not merge label for now.

@mohanli-ml mohanli-ml changed the title feat(transport): PassPerRPCCredential to ComputeEngineCredentials feat(transport): Use NewDirectPathCredentials to replace NewComputeEngineCredentials Sep 14, 2021
@codyoss codyoss added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 14, 2021
@mohanli-ml mohanli-ml changed the title feat(transport): Use NewDirectPathCredentials to replace NewComputeEngineCredentials feat(transport): Use NewComputeEngineCredsWithPerRPC to replace NewComputeEngineCredentials Sep 20, 2021
@mohanli-ml mohanli-ml changed the title feat(transport): Use NewComputeEngineCredsWithPerRPC to replace NewComputeEngineCredentials feat(transport): Use NewComputeEngineCredsWithOptions to replace NewComputeEngineCredentials Oct 1, 2021
@mohanli-ml mohanli-ml closed this Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants