-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Use custom transport for gitlab communication #11693
Conversation
@enj PTAL |
@@ -94,7 +94,11 @@ func (p *provider) GetUserIdentity(data *osincli.AccessData) (authapi.UserIdenti | |||
req, _ := http.NewRequest("GET", p.userAPIURL, nil) |
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.
Is it safe to ignore this err
?
Changes to client / transport 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.
yes, userAPIURL is formed in NewProvider from a known good url and path
[merge] |
res, err := http.DefaultClient.Do(req) | ||
client := http.DefaultClient | ||
if p.transport != nil { | ||
client := &http.Client{Transport: p.transport} |
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.
d'oh missed it - should be =
not :=
[Test]ing while waiting on the merge queue |
Evaluated for origin test up to 92eed7a |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10922/) (Base Commit: 751085f) |
Evaluated for origin merge up to 92eed7a |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10978/) (Base Commit: 537c0a5) (Image: devenv-rhel7_5299) |
Fixes #11689