diff options
author | guillaume.lambert <guillaume.lambert@orange.com> | 2022-05-04 09:44:44 +0200 |
---|---|---|
committer | Guillaume Lambert <guillaume.lambert@orange.com> | 2022-05-06 06:49:33 +0000 |
commit | 20d6797d16645fdec94b330283860185d24d916e (patch) | |
tree | f10de7d369541fc32937929a6104a08e606e2f11 /kubernetes/helm/plugins/deploy/deploy.sh | |
parent | 0d61fe8a534142ff3fb9bb91d69328085fde7418 (diff) |
[COMMON] Fix some k8s plug deploy.sh bashisms
These bashisms were added recently with a few fixes.
Issue-ID: OOM-2643
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I33b77a1db871d6628187692e260265d9c754103f
Diffstat (limited to 'kubernetes/helm/plugins/deploy/deploy.sh')
-rwxr-xr-x | kubernetes/helm/plugins/deploy/deploy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh index 858a5e0b7d..a8d134ba92 100755 --- a/kubernetes/helm/plugins/deploy/deploy.sh +++ b/kubernetes/helm/plugins/deploy/deploy.sh @@ -93,8 +93,9 @@ resolve_deploy_flags() { check_for_dep() { try=0 retries=60 - until (kubectl get deployment -n $HELM_NAMESPACE | grep -P "\b$1\b") &>/dev/null; do - (( ++try > retries )) && exit 1 + until (kubectl get deployment -n $HELM_NAMESPACE | grep -P "\b$1\b") >/dev/null 2>&1; do + try=$(($try + 1)) + [ $try -gt $retries ] && exit 1 echo "$1 not found. Retry $try/$retries" sleep 10 done |