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
52140ea1
Commit
52140ea1
authored
Jun 08, 2018
by
WanLinghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug of wrong parameters which could cause token projection failure
parent
169df743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
token_manager.go
pkg/kubelet/token/token_manager.go
+1
-1
No files found.
pkg/kubelet/token/token_manager.go
View file @
52140ea1
...
@@ -72,7 +72,7 @@ type Manager struct {
...
@@ -72,7 +72,7 @@ type Manager struct {
// * If the token is refreshed successfully, save it in the cache and return the token.
// * If the token is refreshed successfully, save it in the cache and return the token.
// * If refresh fails and the old token is still valid, log an error and return the old token.
// * If refresh fails and the old token is still valid, log an error and return the old token.
// * If refresh fails and the old token is no longer valid, return an error
// * If refresh fails and the old token is no longer valid, return an error
func
(
m
*
Manager
)
GetServiceAccountToken
(
name
,
namespac
e
string
,
tr
*
authenticationv1
.
TokenRequest
)
(
*
authenticationv1
.
TokenRequest
,
error
)
{
func
(
m
*
Manager
)
GetServiceAccountToken
(
name
space
,
nam
e
string
,
tr
*
authenticationv1
.
TokenRequest
)
(
*
authenticationv1
.
TokenRequest
,
error
)
{
key
:=
keyFunc
(
name
,
namespace
,
tr
)
key
:=
keyFunc
(
name
,
namespace
,
tr
)
ctr
,
ok
:=
m
.
get
(
key
)
ctr
,
ok
:=
m
.
get
(
key
)
...
...
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