File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
set -e
7
7
8
- if [ -z " $NO_MINIKUBE " ]; then
9
- pgrep -f " [m]inikube" > /dev/null || minikube start --kubernetes-version=" v1.16.2" --extra-config=apiserver.v=4 || { echo ' Cannot start minikube.' ; exit 1; }
10
- eval " $( minikube docker-env) " || { echo ' Cannot switch to minikube docker' ; exit 1; }
11
- kubectl config use-context minikube
12
- fi
13
-
14
8
docker build -f local.Dockerfile -t quay.io/operator-framework/olm:local -t quay.io/operator-framework/olm-e2e:local ./bin
15
9
docker build -f test/e2e/hang.Dockerfile -t hang:10 ./bin
16
10
17
- if [ -x " $( command -v kind) " ] && [ " $( kubectl config current-context) " = " kind" ]; then
11
+ if [ -x " $( command -v kind) " ] && [[ " $( kubectl config current-context) " =~ ^ kind- ? ] ]; then
18
12
kind load docker-image quay.io/operator-framework/olm:local
19
13
kind load docker-image quay.io/operator-framework/olm-e2e:local
14
+ kind load docker-image hang:10
15
+ exit 0 # don't bother with minikube if kind is active
16
+ fi
17
+
18
+ if [ -z " $NO_MINIKUBE " ]; then
19
+ pgrep -f " [m]inikube" > /dev/null || minikube start --kubernetes-version=" v1.16.2" --extra-config=apiserver.v=4 || { echo ' Cannot start minikube.' ; exit 1; }
20
+ eval " $( minikube docker-env) " || { echo ' Cannot switch to minikube docker' ; exit 1; }
21
+ kubectl config use-context minikube
20
22
fi
You can’t perform that action at this time.
0 commit comments