From 96ce9508244cdc7d9a0dfb77acc341e5d308e702 Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Wed, 15 Apr 2020 20:04:51 -0700 Subject: [PATCH] Fix deploy-hostpath.sh hostpath pod and CRD conditional Signed-off-by: Grant Griffiths --- deploy/util/deploy-hostpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/util/deploy-hostpath.sh b/deploy/util/deploy-hostpath.sh index 825e22702..34113856f 100755 --- a/deploy/util/deploy-hostpath.sh +++ b/deploy/util/deploy-hostpath.sh @@ -203,7 +203,7 @@ done # snapshotter, resizer, socat and hostpath plugin in the default namespace. expected_running_pods=6 cnt=0 -while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt $expected_running_pods ] || ! kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io 2>/dev/null >/dev/null; do +while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt ${expected_running_pods} ] || ! kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io 2>/dev/null >/dev/null; do if [ $cnt -gt 30 ]; then echo "$(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) running pods:" kubectl describe pods