From 009fb679d27bdd103d3b95c3134fd253ff8ae464 Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 22 Mar 2024 18:01:37 +0100 Subject: [PATCH] wait until UM is up and running --- universalmessaging/examples/post-init/values.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/universalmessaging/examples/post-init/values.yaml b/universalmessaging/examples/post-init/values.yaml index 4569911..bc7562e 100644 --- a/universalmessaging/examples/post-init/values.yaml +++ b/universalmessaging/examples/post-init/values.yaml @@ -17,4 +17,8 @@ jobs: - -c - >- echo Deploying Assets in UM [$DEPLOYMENT] ...; - runUMTool.sh CreateConnectionFactory -rname=nsp://$DEPLOYMENT:9000 -factoryname=local_um -factorytype=default -connectionurl=nsp://$DEPLOYMENT:9000 -durabletype=S + until [ "$response" = "0" ] || [ "$response" = "48" ] ; do + runUMTool.sh CreateConnectionFactory -rname=nsp://$DEPLOYMENT:9000 -factoryname=local_um -factorytype=default -connectionurl=nsp://$DEPLOYMENT:9000 -durabletype=S; + response=$?; + sleep 10; + done \ No newline at end of file