File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,15 @@ docker build -f e2e.Dockerfile -t quay.io/operator-framework/olm:local -t quay.i
17
17
docker build -f test/e2e/hang.Dockerfile -t hang:10 ./bin
18
18
19
19
if [ -n " $KIND " ]; then
20
- kind load docker-image quay.io/operator-framework/olm:local
21
- kind load docker-image quay.io/operator-framework/olm-e2e:local
22
- kind load docker-image hang:10
20
+ CLUSTERS=($( kind get clusters) )
21
+
22
+ # kind will use the cluster named kind by default, so if there is only one cluster, specify it
23
+ if [[ ${# CLUSTERS[@]} == 1 ]]; then
24
+ KIND_FLAGS=" --name ${CLUSTERS[0]} "
25
+ echo ' Use cluster ${CLUSTERS[0]}'
26
+ fi
27
+
28
+ kind load docker-image quay.io/operator-framework/olm:local ${KIND_FLAGS}
29
+ kind load docker-image quay.io/operator-framework/olm-e2e:local ${KIND_FLAGS}
30
+ kind load docker-image hang:10 ${KIND_FLAGS}
23
31
fi
You can’t perform that action at this time.
0 commit comments