Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
030017fc
Commit
030017fc
authored
Feb 27, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add WrappedRoundTripper() to tokenSourceTransport
parent
7c074574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
token_source.go
staging/src/k8s.io/client-go/transport/token_source.go
+4
-0
No files found.
staging/src/k8s.io/client-go/transport/token_source.go
View file @
030017fc
...
@@ -64,6 +64,10 @@ type tokenSourceTransport struct {
...
@@ -64,6 +64,10 @@ type tokenSourceTransport struct {
ort
http
.
RoundTripper
ort
http
.
RoundTripper
}
}
func
(
tst
*
tokenSourceTransport
)
WrappedRoundTripper
()
http
.
RoundTripper
{
return
tst
.
base
}
func
(
tst
*
tokenSourceTransport
)
RoundTrip
(
req
*
http
.
Request
)
(
*
http
.
Response
,
error
)
{
func
(
tst
*
tokenSourceTransport
)
RoundTrip
(
req
*
http
.
Request
)
(
*
http
.
Response
,
error
)
{
// This is to allow --token to override other bearer token providers.
// This is to allow --token to override other bearer token providers.
if
req
.
Header
.
Get
(
"Authorization"
)
!=
""
{
if
req
.
Header
.
Get
(
"Authorization"
)
!=
""
{
...
...
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