mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #97693 from enj/enj/i/oidc_fast_init
oidc authenticator: attempt to immediately initialize verifier
This commit is contained in:
commit
d1db90ba57
@ -218,7 +218,7 @@ func New(opts Options) (*Authenticator, error) {
|
|||||||
return newAuthenticator(opts, func(ctx context.Context, a *Authenticator, config *oidc.Config) {
|
return newAuthenticator(opts, func(ctx context.Context, a *Authenticator, config *oidc.Config) {
|
||||||
// Asynchronously attempt to initialize the authenticator. This enables
|
// Asynchronously attempt to initialize the authenticator. This enables
|
||||||
// self-hosted providers, providers that run on top of Kubernetes itself.
|
// self-hosted providers, providers that run on top of Kubernetes itself.
|
||||||
go wait.PollUntil(time.Second*10, func() (done bool, err error) {
|
go wait.PollImmediateUntil(time.Second*10, func() (done bool, err error) {
|
||||||
provider, err := oidc.NewProvider(ctx, a.issuerURL)
|
provider, err := oidc.NewProvider(ctx, a.issuerURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("oidc authenticator: initializing plugin: %v", err)
|
klog.Errorf("oidc authenticator: initializing plugin: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user