-
Notifications
You must be signed in to change notification settings - Fork 43
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
Resolves GCP API calls for monitoring.googleapis.com to set of IPs #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Looking forward to seeing the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this!
Please make sure that vendor/google.golang.org/grpc/resolver/manual/manual.go isn't part of this PR (I'm not sure why it still is).
@@ -120,6 +127,11 @@ func (c *Client) getConnection(ctx context.Context) (*grpc.ClientConn, error) { | |||
if len(c.url.Port()) > 0 { | |||
address = fmt.Sprintf("%s:%s", address, c.url.Port()) | |||
} | |||
if c.resolver != nil { | |||
address = c.resolver.Scheme() + ":///" + address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is c.resolver.Scheme()
here? It seems like it wouldn't be an address, like what exists above on line 128.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some info here puts it better than I could: https://chromium.googlesource.com/external/github.com/grpc/grpc/+/v1.8.5/doc/naming.md The actual scheme is just a random series of letters. Most of what I know is that doc and the fact that we need it for dns. Let me know if you have other questions and I'll answer the best I can.
…er-prometheus-sidecar into nina-marie-sidecar
No description provided.