File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ KUBEBUILDER_ASSETS ?= $(shell $(SETUP_ENVTEST) use -p path $(KUBE_MINOR).x)
102
102
103
103
# Kind node image tags are in the format x.y.z we pin to version x.y.0 because patch releases and node images
104
104
# are not guaranteed to be available when a new version of the kube apis is released
105
- KIND_CLUSTER_IMAGE := kindest/node:v$(KUBE_MINOR ) .0
105
+ export KIND_CLUSTER_IMAGE := kindest/node:v$(KUBE_MINOR ) .0
106
106
export KIND_CLUSTER_NAME ?= kind-olmv0
107
107
108
108
# Targets #
Original file line number Diff line number Diff line change 2
2
set -o errexit
3
3
set -x
4
4
5
+ BINGO_ENV_PATH=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../.bingo" && pwd)
6
+
7
+ . " ${BINGO_ENV_PATH} /variables.env"
8
+
5
9
# Original source: https://kind.sigs.k8s.io/docs/user/local-registry/
6
10
KIND_CLUSTER_NAME=${KIND_CLUSTER_NAME:- kind-olmv0}
7
11
KIND=${KIND:- kind}
25
29
# https://github.com/kubernetes-sigs/kind/issues/2875
26
30
# https://github.com/containerd/containerd/blob/main/docs/cri/config.md#registry-configuration
27
31
# See: https://github.com/containerd/containerd/blob/main/docs/hosts.md
28
- cat << EOF | ${KIND} create cluster --name="${KIND_CLUSTER_NAME} " ${KIND_CREATE_OPTS} --config=-
32
+ if [ -n " ${KIND_CLUSTER_IMAGE} " ]; then
33
+ KIND_IMAGE=" --image=${KIND_CLUSTER_IMAGE} "
34
+ fi
35
+ cat << EOF | ${KIND} create cluster --name="${KIND_CLUSTER_NAME} " "${KIND_IMAGE} " ${KIND_CREATE_OPTS} --config=-
29
36
kind: Cluster
30
37
apiVersion: kind.x-k8s.io/v1alpha4
31
38
containerdConfigPatches:
You can’t perform that action at this time.
0 commit comments