File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 44
44
fi
45
45
docker --version
46
46
47
- # Get the latest stable version of kubernetes
47
+ # Get the latest stable version of kubernetes, this is not always what minikube
48
+ # installs per default
49
+ # See:
50
+ # https://github.com/kubernetes/minikube/blob/master/pkg/minikube/constants/constants.go
48
51
K8S_VERSION=$( curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt)
49
52
echo " K8S_VERSION : ${K8S_VERSION} "
50
53
54
+ # You can pass variables to minikube using MINIKUBE_ARGS
55
+ # If using tox you can export TOX_TESTENV_PASSENV.
56
+ # For example, you can run:
57
+ # $ export TOX_TESTENV_PASSENV="MINIKUBE_ARGS=--kubernetes-version=1.X.Y"
58
+ # now tox will run minikube with the specified flag
59
+ MINIKUBE_ARGS=${MINIKUBE_ARGS:- " " }
60
+
51
61
echo " Starting docker service"
52
62
sudo systemctl enable docker.service
53
63
sudo systemctl start docker.service --ignore-dependencies
@@ -80,7 +90,7 @@ export MINIKUBE_DRIVER=${MINIKUBE_DRIVER:-none}
80
90
# Used bootstrapper to be kubeadm for the most recent k8s version
81
91
# since localkube is depreciated and only supported up to version 1.10.0
82
92
echo " Starting minikube"
83
- sudo minikube start --vm-driver=$MINIKUBE_DRIVER --bootstrapper=kubeadm --kubernetes-version= $K8S_VERSION -- logtostderr
93
+ sudo minikube start --vm-driver=$MINIKUBE_DRIVER --bootstrapper=kubeadm --logtostderr $MINIKUBE_ARGS
84
94
85
95
MINIKUBE_OK=" false"
86
96
You can’t perform that action at this time.
0 commit comments