mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-08 23:23:39 +00:00
Make temporary errors return Pending in impersonatorconfig.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
@@ -1413,6 +1413,10 @@ func performImpersonatorDiscovery(ctx context.Context, t *testing.T, env *librar
|
||||
} else if strategy.Type == conciergev1alpha.ImpersonationProxyStrategyType {
|
||||
t.Logf("Waiting for successful impersonation proxy strategy on %s: found status %s with reason %s and message: %s",
|
||||
credentialIssuerName(env), strategy.Status, strategy.Reason, strategy.Message)
|
||||
if strategy.Reason == conciergev1alpha.ErrorDuringSetupStrategyReason {
|
||||
// The server encountered an unexpected error while starting the impersonator, so fail the test fast.
|
||||
return false, fmt.Errorf("found impersonation strategy in %s state with message: %s", strategy.Reason, strategy.Message)
|
||||
}
|
||||
}
|
||||
}
|
||||
t.Log("Did not find any impersonation proxy strategy on CredentialIssuer")
|
||||
|
||||
Reference in New Issue
Block a user