mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
fix a bug of wrong parameters which could cause token projection failure
This commit is contained in:
parent
169df74341
commit
52140ea1d3
@ -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, 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)
|
key := keyFunc(name, namespace, tr)
|
||||||
ctr, ok := m.get(key)
|
ctr, ok := m.get(key)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user