Merge "[Ceph] Update helm tests for ceph-provisioners"

This commit is contained in:
Zuul 2019-06-23 04:34:38 +00:00 committed by Gerrit Code Review
commit 3d3f74de69

View File

@ -64,11 +64,16 @@ spec:
EOF EOF
# waiting for pvc to get create # waiting for pvc to get create
sleep 30 end=$(($(date +%s) + 120))
if ! kubectl get pvc -n $pvc_namespace $pvc_name|grep Bound; then while ! kubectl get pvc -n $pvc_namespace $pvc_name|grep Bound; do
echo "Storageclass is available but can't create PersistentVolumeClaim." if [ "$(date +%s)" -gt $end ]; then
exit 1 kubectl get pvc -n $pvc_namespace $pvc_name
fi kubectl get pv
echo "Storageclass is available but can't create PersistentVolumeClaim."
exit 1
fi
sleep 10
done
tee <<EOF | kubectl apply --namespace $pvc_namespace -f - tee <<EOF | kubectl apply --namespace $pvc_namespace -f -
--- ---