fix bootstrap already exists handling

This commit is contained in:
Janne Mensonen 2024-08-05 14:26:22 +03:00
parent 1dc08db36a
commit 7cbf50d754
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ func (v *ChainVerifier) VerifyToken(ctx context.Context, rawRequest *http.Reques
if err == ErrNotThisVerifier {
continue
}
if err == ErrAlreadyExists {
return nil, ErrAlreadyExists
}
klog.Infof("failed to verify token: %v", err)
}
return nil, fmt.Errorf("unable to verify token")