Skip to content

Commit 489cf9d

Browse files
committed
oidc: extend keycloak availability check timeout
as running in CI seems to periodically take longer than originally expected for keycloak to roll out Signed-off-by: Bryce Palmer <[email protected]>
1 parent 851e33d commit 489cf9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/extended/authentication/keycloak_helpers.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func createKeycloakRoute(ctx context.Context, service *corev1.Service, client ty
351351
}
352352

353353
func waitForKeycloakAvailable(ctx context.Context, client *exutil.CLI, namespace string) error {
354-
timeoutCtx, cancel := context.WithDeadline(ctx, time.Now().Add(5*time.Minute))
354+
timeoutCtx, cancel := context.WithDeadline(ctx, time.Now().Add(10*time.Minute))
355355
defer cancel()
356356
err := wait.PollUntilContextCancel(timeoutCtx, 10*time.Second, true, func(ctx context.Context) (done bool, err error) {
357357
deploy, err := client.AdminKubeClient().AppsV1().Deployments(namespace).Get(ctx, keycloakResourceName, metav1.GetOptions{})
@@ -365,6 +365,8 @@ func waitForKeycloakAvailable(ctx context.Context, client *exutil.CLI, namespace
365365
}
366366
}
367367

368+
fmt.Println("keycloak deployment is not yet available. status: ", deploy.Status)
369+
368370
return false, nil
369371
})
370372

0 commit comments

Comments
 (0)