From 2079ee46de2ec952c072da6544aabed11d9d47e1 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Sat, 19 Dec 2020 10:21:01 -0600
Subject: [PATCH] Add more sleep to postgis install

---
 helpers/deploy_postgis.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/helpers/deploy_postgis.sh b/helpers/deploy_postgis.sh
index d97a047..8c645e8 100755
--- a/helpers/deploy_postgis.sh
+++ b/helpers/deploy_postgis.sh
@@ -38,6 +38,10 @@ helm upgrade -v 2 --install -f ${values_base}/values-postgis.yaml $EXTRA_ARGS --
 # do a little waiting for the postgres pod to be ready so future stages
 # don't fail to communicate with it
 echo "Start waiting for postgres: $(date +%Y%m%dT%H%M%S)"
+kubectl -n $ns get pods
+sleep 5
+echo "Done sleeping. Making sure the pod(s) are ready. ${release_name}"
+kubectl -n $ns get pods
 kubectl wait -n $ns --selector=app.kubernetes.io/instance=${release_name} --timeout 120s --for=condition=Ready pod
 status=$?
 echo "Done waiting for postgis: $(date +%Y%m%dT%H%M%S) : $status"
-- 
GitLab