Merge "[Ceph] Update helm tests for ceph-provisioners"
This commit is contained in:
commit
3d3f74de69
@ -64,11 +64,16 @@ spec:
|
||||
EOF
|
||||
|
||||
# waiting for pvc to get create
|
||||
sleep 30
|
||||
if ! kubectl get pvc -n $pvc_namespace $pvc_name|grep Bound; then
|
||||
end=$(($(date +%s) + 120))
|
||||
while ! kubectl get pvc -n $pvc_namespace $pvc_name|grep Bound; do
|
||||
if [ "$(date +%s)" -gt $end ]; then
|
||||
kubectl get pvc -n $pvc_namespace $pvc_name
|
||||
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 -
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user