aboutsummaryrefslogtreecommitdiffstats
path: root/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
diff options
context:
space:
mode:
authorEdwin Lawrance <Edwin.Lawrance@amdocs.com>2019-03-05 10:30:33 +0000
committerEdwin Lawrance <Edwin.Lawrance@amdocs.com>2019-03-05 14:55:20 +0000
commitcfb49dbeb4a5509d1bfe529926eaeab568a3bcca (patch)
tree46c4eb27278449d02934db2e61bf52b68392c563 /charts/aai-elasticsearch/resources/bin/wait_until_started.sh
parent28c2643a31109f19b54dbf3e7f6594eafdb50b52 (diff)
Add Searchguard OOM config to ElasticSearch
Change-Id: I3c4d0c82882b2f064a6ad3610c0f699d8af50632 Issue-ID: AAI-2203 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
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