Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
k3s
Commits
3fafe88a
Commit
3fafe88a
authored
6 years ago
by
Darren Shepherd
Committed by
Erik Wilson
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add WrappedRoundTripper() to tokenSourceTransport
parent
1ad2a588
k3s-v1.14.5
v1.14.5-k3s.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
staging/src/k8s.io/client-go/transport/token_source.go
+4
-0
staging/src/k8s.io/client-go/transport/token_source.go
with
4 additions
and
0 deletions
+4
-0
staging/src/k8s.io/client-go/transport/token_source.go
View file @
3fafe88a
...
...
@@ -64,6 +64,10 @@ type tokenSourceTransport struct {
ort
http
.
RoundTripper
}
func
(
tst
*
tokenSourceTransport
)
WrappedRoundTripper
()
http
.
RoundTripper
{
return
tst
.
base
}
func
(
tst
*
tokenSourceTransport
)
RoundTrip
(
req
*
http
.
Request
)
(
*
http
.
Response
,
error
)
{
// This is to allow --token to override other bearer token providers.
if
req
.
Header
.
Get
(
"Authorization"
)
!=
""
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help