Skip to content

Commit

Permalink
Merge pull request #174 from ggriffiths/fix_deploy_loop_for_k8s116
Browse files Browse the repository at this point in the history
Fix deploy-hostpath.sh hostpath pod and CRD conditional for k8s 1.16
  • Loading branch information
k8s-ci-robot authored Apr 16, 2020
2 parents e244246 + c2abbda commit dba0a68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy/util/deploy-hostpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,10 @@ 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} ]; do
if [ $cnt -gt 30 ]; then
echo "$(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l) running pods:"
kubectl describe pods
(set -x; kubectl describe volumesnapshotclasses.snapshot.storage.k8s.io) || true
echo >&2 "ERROR: hostpath deployment not ready after over 5min"
exit 1
Expand Down

0 comments on commit dba0a68

Please sign in to comment.