From 52140ea1d3244ebc7863234dc46ce02efbc7ecec Mon Sep 17 00:00:00 2001 From: WanLinghao Date: Fri, 8 Jun 2018 12:00:58 +0800 Subject: [PATCH] fix a bug of wrong parameters which could cause token projection failure --- pkg/kubelet/token/token_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/token/token_manager.go b/pkg/kubelet/token/token_manager.go index db052e51e41..d081bdd149d 100644 --- a/pkg/kubelet/token/token_manager.go +++ b/pkg/kubelet/token/token_manager.go @@ -72,7 +72,7 @@ type Manager struct { // * 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 no longer valid, return an error -func (m *Manager) GetServiceAccountToken(name, namespace string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { +func (m *Manager) GetServiceAccountToken(namespace, name string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { key := keyFunc(name, namespace, tr) ctr, ok := m.get(key)