-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Support a proxy in splunk log driver #36220
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
Support a proxy in splunk log driver #36220
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.
LGTM, thanks!
LGTM for sure |
I think this is the way it's supposed to be used (also see https://golang.org/pkg/net/http/#ProxyFromEnvironment, and the example on that page)
So an error is only returned in situations where no proxy should be used (in which case |
PowerPC node has some issues; https://jenkins.dockerproject.org/job/Docker-PRs-powerpc/8278/console
|
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.
@dnephin can you pls add a test-case ?
Signed-off-by: Daniel Nephin <dnephin@docker.com>
becf86a
to
88aa839
Compare
Added a unit test. I tried adding a more complete test using the Since the rest of this code is part of the stdlib, all we really need to test is that the transport has the correct proxy factory, which is covered by this test. |
88aa839
to
0823c9b
Compare
Signed-off-by: Daniel Nephin <dnephin@docker.com>
0823c9b
to
3c4537d
Compare
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.
a unit test sounds sane to me
LGTM
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.
Thanks @dnephin . LGTM
No description provided.