Introduce GRPC_PROXY EnvVar Support#2364
Introduce GRPC_PROXY EnvVar Support#2364openshift-merge-robot merged 1 commit intooperator-framework:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
be37352 to
b037c55
Compare
|
Please take a look @kevinrizza @estroz |
tylerslaton
left a comment
There was a problem hiding this comment.
Couple of questions! Looks good.
5ccf427 to
c0e0e4f
Compare
|
/retest |
c0e0e4f to
f454e9b
Compare
|
/hold |
f454e9b to
99ee72c
Compare
|
/unhold |
0f26cbe to
98872ac
Compare
|
/lgtm |
|
/hold looks like some related unit tests are failing. |
njhale
left a comment
There was a problem hiding this comment.
sorry for the late review here, but spotted a few things of note:
| _ = s.Remove(key) | ||
|
|
||
| conn, err := grpc.Dial(address, grpc.WithInsecure()) | ||
| conn, err := grpcConnection(address) |
There was a problem hiding this comment.
Can we abstract the dial logic away? maybe take a Dailer as a field of SourceStore?
There was a problem hiding this comment.
If we pursue this option wouldn't the connection to the proxy need to remain open indefinitely?
| HTTPProxy: getGRPCProxyEnv(), | ||
| HTTPSProxy: getGRPCProxyEnv(), | ||
| NoProxy: getEnvAny("NO_PROXY", "no_proxy"), | ||
| CGI: os.Getenv("REQUEST_METHOD") != "", |
There was a problem hiding this comment.
nit: We should probably memoize these so we don't fetch them for every dial.
There was a problem hiding this comment.
This seems reasonable but would make the values static, which likely isn't a problem given how deployments and pods work.
|
/lgtm looks like the unit test may have been on a stale commit |
Introduce the ability to specify a dial context for GRPC connections. Signed-off-by: Alexander Greene <greene.al1991@gmail.com>
98872ac to
31c7815
Compare
|
/lgtm |
|
@awgreene: #2364 failed to apply on top of branch "release-4.9": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This reverts commit afc0848.
This reverts commit afc0848.
Introduce the ability to specify a dial context for GRPC connections.