Skip to content

Commit dba0a68

Browse files
authored
Merge pull request #174 from ggriffiths/fix_deploy_loop_for_k8s116
Fix deploy-hostpath.sh hostpath pod and CRD conditional for k8s 1.16
2 parents e244246 + c2abbda commit dba0a68

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)