From 3dc77df026d546be7dd2336f3a96ef037a6d459f Mon Sep 17 00:00:00 2001 From: Nithin Shekar Kuruba Date: Thu, 16 Jan 2025 16:07:35 -0800 Subject: [PATCH] feat: use stateful to fetch keycloak --- transition-scripts/helpers/keycloak.sh | 2 +- transition-scripts/test-helpers/wait-keycloak-dr-ready.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transition-scripts/helpers/keycloak.sh b/transition-scripts/helpers/keycloak.sh index 94e17de..36b80c2 100644 --- a/transition-scripts/helpers/keycloak.sh +++ b/transition-scripts/helpers/keycloak.sh @@ -12,7 +12,7 @@ wait_for_keycloak_all_ready() { namespace="$1" - replicas=$(kubectl get deployment sso-keycloak -n "$namespace" -o jsonpath='{.spec.replicas}') + replicas=$(kubectl get statefulset sso-keycloak -n "$namespace" -o jsonpath='{.spec.replicas}') count=0 wait_ready() { diff --git a/transition-scripts/test-helpers/wait-keycloak-dr-ready.sh b/transition-scripts/test-helpers/wait-keycloak-dr-ready.sh index c3fc209..0fbffac 100755 --- a/transition-scripts/test-helpers/wait-keycloak-dr-ready.sh +++ b/transition-scripts/test-helpers/wait-keycloak-dr-ready.sh @@ -24,7 +24,7 @@ wait_for_keycloak_all_ready_with_replicas() { count_kc=0 wait_kc_ready() { - replicas=$(kubectl get deployment sso-keycloak -n "$namespace" -o jsonpath='{.spec.replicas}') + replicas=$(kubectl get statefulset sso-keycloak -n "$namespace" -o jsonpath='{.spec.replicas}') ready_count=$(count_ready_keycloak_pods "$namespace") info "keycloak ready $ready_count/$replicas"