Skip to content

Commit c2abbda

Browse files
committed
Fix deploy-hostpath.sh hostpath pod and CRD conditional
Signed-off-by: Grant Griffiths <[email protected]>
1 parent 539736a commit c2abbda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

deploy/util/deploy-hostpath.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,10 @@ done
203203
# snapshotter, resizer, socat and hostpath plugin in the default namespace.
204204
expected_running_pods=6
205205
cnt=0
206-
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
206+
while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) -lt ${expected_running_pods} ]; do
207207
if [ $cnt -gt 30 ]; then
208208
echo "$(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) running pods:"
209209
kubectl describe pods
210-
(set -x; kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io) || true
211210
212211
echo >&2 "ERROR: hostpath deployment not ready after over 5min"
213212
exit 1

0 commit comments

Comments
 (0)