summaryrefslogtreecommitdiffstats
path: root/charts/aai-traversal
diff options
context:
space:
mode:
authorKajur, Harish (vk250x) <vk250x@att.com>2018-10-08 20:45:03 -0400
committerKajur, Harish (vk250x) <vk250x@att.com>2018-10-08 20:45:07 -0400
commitad22d594495c906c5455628a815ca162be8e1763 (patch)
tree9b5c0d6ebf582f7f065a25123e679ce3a0931c2a /charts/aai-traversal
parentcce2a91443e468e69fd0276d684e2138a9ad9c4b (diff)
Modify the updateQueryData job to keep waiting
until the haproxy can be reached by the kubernetes pod created by the job For some reason in certain rare cases the job is being started prematurely before haproxy container is up so doing another check Issue-ID: AAI-1713 Change-Id: I86827af46220eeb94322973d22a3abd4287eacea Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'charts/aai-traversal')
-rw-r--r--charts/aai-traversal/templates/job.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/charts/aai-traversal/templates/job.yaml b/charts/aai-traversal/templates/job.yaml
index a018ede..599bbc2 100644
--- a/charts/aai-traversal/templates/job.yaml
+++ b/charts/aai-traversal/templates/job.yaml
@@ -58,6 +58,7 @@ spec:
- |
set -x
mkdir -p /opt/aai/logroot/AAI-GQ/misc
+ until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done;
bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
env:
- name: LOCAL_USER_ID