This repository was archived by the owner on Apr 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ presubmits :
2
+ - name : pull-controller-runtime-example-e2e
3
+ always_run : true
4
+ decorate : true
5
+ clone_uri : " ssh://git@github.com/kcp-dev/controller-runtime-example.git"
6
+ labels :
7
+ preset-goproxy : " true"
8
+ spec :
9
+ containers :
10
+ - image : ghcr.io/kcp-dev/infra/build:1.19.9-2
11
+ command :
12
+ - make
13
+ - test-e2e
14
+
15
+ - name : pull-controller-runtime-example-unit
16
+ always_run : true
17
+ decorate : true
18
+ clone_uri : " ssh://git@github.com/kcp-dev/controller-runtime-example.git"
19
+ labels :
20
+ preset-goproxy : " true"
21
+ spec :
22
+ containers :
23
+ - image : ghcr.io/kcp-dev/infra/build:1.19.9-2
24
+ command :
25
+ - make
26
+ - test
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ KUSTOMIZE_VERSION ?= v3.8.7
33
33
CONTROLLER_TOOLS_VERSION ?= v0.8.0
34
34
KCP_VERSION ?= 0.11.0-alpha.0
35
35
YQ_VERSION ?= v4.27.2
36
+ KIND_VERSION ?= v0.19.0
36
37
37
38
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
38
39
$(KUSTOMIZE ) : # # Download kustomize locally if necessary.
@@ -146,6 +147,10 @@ kind-image: docker-build ## Load the controller-manager image into the kind clus
146
147
kind load docker-image $(REGISTRY ) /$(IMG ) --name controller-runtime-example
147
148
148
149
$(ARTIFACT_DIR ) /kind.kubeconfig : $(ARTIFACT_DIR ) # # Run a kind cluster and generate a $KUBECONFIG for it.
150
+ if ! type " kind" > /dev/null; then
151
+ wget -q -O /usr/local/bin/kind https ://kind.sigs.k8s.io/dl/v${KIND_VERSION}/kind-linux-amd64 && \
152
+ chmod +x /usr/local/bin/kind; \
153
+ fi
149
154
@if ! kind get clusters --quiet | grep --quiet controller-runtime-example; then kind create cluster --name controller-runtime-example --image kindest/node:v1.24.2; fi
150
155
kind get kubeconfig --name controller-runtime-example > $(ARTIFACT_DIR)/kind.kubeconfig
151
156
You can’t perform that action at this time.
0 commit comments