Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Show minikube logs if it fails to start up
Browse files Browse the repository at this point in the history
  • Loading branch information
wallrj committed Nov 8, 2017
1 parent bd28ba6 commit 5998a59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions hack/install-e2e-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
#
# Install e2e test dependencies on Travis
set -eux
curl -Lo helm.tar.gz \
https://storage.googleapis.com/kubernetes-helm/helm-v2.6.1-linux-amd64.tar.gz
Expand All @@ -23,3 +26,10 @@ sudo -E CHANGE_MINIKUBE_NONE_USER=true minikube start \
--vm-driver=none \
--kubernetes-version="$KUBERNETES_VERSION" \
--extra-config=apiserver.Authorization.Mode=RBAC

echo "Waiting up to 5 minutes for Kubernetes to be ready..."
if ! retry TIMEOUT=300 kubectl get nodes; then
minikube logs
echo "ERROR: Timeout waiting for Minikube to be ready"
exit 1
fi
3 changes: 0 additions & 3 deletions hack/prepare-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ SCRIPT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"

source "${SCRIPT_DIR}/libe2e.sh"

echo "Waiting up to 10 minutes for Kubernetes to be ready..."
retry TIMEOUT=600 kubectl get nodes

echo "Installing helm..."
cat <<EOF | kubectl apply -f -
apiVersion: v1
Expand Down

0 comments on commit 5998a59

Please sign in to comment.