ensures support for cluster-wide monitoring (#22821)

Partially addresses #15888
This commit is contained in:
Steven Hawkins
2023-09-19 13:46:37 -04:00
committed by GitHub
parent ed443a962e
commit b343f87c60
16 changed files with 72 additions and 31 deletions
+4 -2
View File
@@ -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