[DEPLOY] Bug fix for positional arg in deploy.sh 62/128262/3
authorefiacor <fiachra.corcoran@est.tech>
Mon, 4 Apr 2022 10:40:23 +0000 (11:40 +0100)
committerFiachra Corcoran <fiachra.corcoran@est.tech>
Mon, 4 Apr 2022 11:13:36 +0000 (11:13 +0000)
Bug fix for positional arg in deploy.sh

Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: Ic8de9baf9236e65e53a0d2d9ba084208a3212772
Issue-ID: OOM-2955

kubernetes/helm/plugins/deploy/deploy.sh

index 81bc413..f32281d 100755 (executable)
@@ -91,7 +91,7 @@ resolve_deploy_flags() {
 check_for_dep() {
     try=0
     retries=30
-    until (kubectl get deployment -n $RELEASE | grep -P "\b$2\b") &>/dev/null; do
+    until (kubectl get deployment -n $RELEASE | grep -P "\b$1\b") &>/dev/null; do
         (( ++try > retries )) && exit 1
         echo "$1 not found. Retry $try/$retries"
         sleep 5