Merge pull request #57218 from iloayuil/typo
Automatic merge from submit-queue (batch tested with PRs 56375, 56872, 57053, 57165, 57218). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. typo wrong, not "namespace", but "secretName" namespace, _ := claims[NamespaceClaim].(string) if len(namespace) == 0 { return nil, false, errors.New("namespace claim is missing") } secretName, _ := claims[SecretNameClaim].(string) if len(namespace) == 0 { return nil, false, errors.New("secretName claim is missing") } **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
		@@ -194,7 +194,7 @@ func (j *jwtTokenAuthenticator) AuthenticateToken(token string) (user.Info, bool
 | 
			
		||||
			return nil, false, errors.New("namespace claim is missing")
 | 
			
		||||
		}
 | 
			
		||||
		secretName, _ := claims[SecretNameClaim].(string)
 | 
			
		||||
		if len(namespace) == 0 {
 | 
			
		||||
		if len(secretName) == 0 {
 | 
			
		||||
			return nil, false, errors.New("secretName claim is missing")
 | 
			
		||||
		}
 | 
			
		||||
		serviceAccountName, _ := claims[ServiceAccountNameClaim].(string)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user