summaryrefslogtreecommitdiffstats
path: root/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
diff options
context:
space:
mode:
authorJames MacNider <James.MacNider@amdocs.com>2019-03-12 17:02:41 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-12 17:02:41 +0000
commit215bb81eb81b56e50e6f4c07a897c5e40b387005 (patch)
treefcae27d9db80e28078411a4266dbda0e1c7d2be8 /charts/aai-elasticsearch/resources/bin/wait_until_started.sh
parentcff7b3ddbc9dbe64076738133bc06d3b1cef1758 (diff)
parentcfb49dbeb4a5509d1bfe529926eaeab568a3bcca (diff)
Merge "Add Searchguard OOM config to ElasticSearch"
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