Skip to content

Commit

Permalink
Remove update-context, remove || true for mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
micw523 authored Oct 31, 2018
1 parent d697940 commit 7f199e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/kube-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ echo "Set up minikube"
export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
export CHANGE_MINIKUBE_NONE_USER=true
sudo mkdir -p $HOME/.kube || true
sudo mkdir -p $HOME/.minikube || true
sudo mkdir -p $HOME/.kube
sudo mkdir -p $HOME/.minikube
sudo touch $HOME/.kube/config
export KUBECONFIG=$HOME/.kube/config
export MINIKUBE_HOME=$HOME
Expand All @@ -82,9 +82,6 @@ export MINIKUBE_DRIVER=${MINIKUBE_DRIVER:-none}
echo "Starting minikube"
sudo minikube start --vm-driver=$MINIKUBE_DRIVER --bootstrapper=kubeadm --kubernetes-version=$K8S_VERSION --logtostderr

# Make sure minikube information is not outdated
sudo minikube update-context

MINIKUBE_OK="false"

echo "Waiting for minikube to start..."
Expand Down

0 comments on commit 7f199e0

Please sign in to comment.