summaryrefslogtreecommitdiffstats
path: root/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
diff options
context:
space:
mode:
Diffstat (limited to 'charts/aai-elasticsearch/resources/bin/wait_until_started.sh')
-rw-r--r--charts/aai-elasticsearch/resources/bin/wait_until_started.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/charts/aai-elasticsearch/resources/bin/wait_until_started.sh b/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
new file mode 100644
index 0000000..279253b
--- /dev/null
+++ b/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+RET=1
+
+while [[ RET -ne 0 ]]; do
+ echo "Waiting for Elasticsearch to become ready before running sgadmin..."
+ curl -XGET -k "https://localhost:{{ .Values.service.internalPort }}/" >/dev/null 2>&1
+ RET=$?
+ sleep 5
+done \ No newline at end of file