[kanister] making timeouts lower
travis ci is faster, making timeouts smaller
@@ -69,7 +69,7 @@ get_minikube() {
wait_for_minikube_nodes() {
local nodes_ready=$(kubectl get nodes 2>/dev/null | grep -c Ready)
- local retries=10
+ local retries=20
while [[ ${nodes_ready} == 0 ]]
do
if [[ ${retries} -le 0 ]]
@@ -79,7 +79,7 @@ wait_for_minikube_nodes() {
minikube status
return 1
fi
- sleep 20
+ sleep 5
nodes_ready=$(kubectl get nodes 2>/dev/null | grep -c Ready)
retries=$((retries-1))
done
@@ -89,7 +89,7 @@ wait_for_minikube_nodes() {
wait_for_pods() {
local namespace=${1:-"kube-system"}
local pod_status=$(kubectl get pod --namespace=${namespace} -o json | jq -j ".items | .[] | .status | .containerStatuses | .[] | .ready")
- local retries=10
+ local retries=20
while [[ ${pod_status} == *false* ]] || [[ ${pod_status} == '' ]]
do
@@ -99,7 +99,7 @@ wait_for_pods() {
kubectl get pod --namespace=${namespace}
return 1
fi
- sleep 20
+ sleep 5
if ! pod_status=$(kubectl get pod --namespace=${namespace} -o json | jq -j ".items | .[] | .status | .containerStatuses | .[] | .ready")
then
pod_status=''
