summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorFiachra Corcoran <fiachra.corcoran@est.tech>2022-05-09 08:54:01 +0000
committerGerrit Code Review <gerrit@onap.org>2022-05-09 08:54:01 +0000
commit271560c6bc1e5ed027a7cc11683e6688c3bc56bf (patch)
tree28702df59c8af57b5bf3221e97260b7caf66f3b2 /kubernetes
parent9a8afcc60547dcb90b70cff2f32b91bc47667f98 (diff)
parent20d6797d16645fdec94b330283860185d24d916e (diff)
Merge "[COMMON] Fix some k8s plug deploy.sh bashisms"
Diffstat (limited to 'kubernetes')
-rwxr-xr-xkubernetes/helm/plugins/deploy/deploy.sh5
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