mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-08 08:01:18 -05:00
ensures support for cluster-wide monitoring (#22821)
Partially addresses #15888
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#! /bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
NAMESPACE=${1:-default}
|
||||
|
||||
max_retries=500
|
||||
c=0
|
||||
while [[ $(kubectl get keycloaks/example-kc -o jsonpath="{.status.conditions[?(@.type == 'Ready')].status}") != "True" ]]
|
||||
while [[ $(kubectl -n $NAMESPACE get keycloaks/example-kc -o jsonpath="{.status.conditions[?(@.type == 'Ready')].status}") != "True" ]]
|
||||
do
|
||||
echo "waiting for Keycloak example-kc status"
|
||||
((c++)) && ((c==max_retries)) && exit -1
|
||||
@@ -11,7 +13,7 @@ do
|
||||
done
|
||||
|
||||
c=0
|
||||
while [[ $(kubectl get keycloakrealmimports/example-count0-kc -o jsonpath="{.status.conditions[?(@.type == 'Done')].status}") != "True" ]]
|
||||
while [[ $(kubectl -n $NAMESPACE get keycloakrealmimports/example-count0-kc -o jsonpath="{.status.conditions[?(@.type == 'Done')].status}") != "True" ]]
|
||||
do
|
||||
echo "waiting for Keycloak Realm Import example-count0-kc status"
|
||||
((c++)) && ((c==max_retries)) && exit -1
|
||||
|
||||
Reference in New Issue
Block a user