Bug fix for positional arg in deploy.sh
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: Ic8de9baf9236e65e53a0d2d9ba084208a3212772
Issue-ID: OOM-2955
check_for_dep() {
try=0
retries=30
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
(( ++try > retries )) && exit 1
echo "$1 not found. Retry $try/$retries"
sleep 5