Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 0526869

Browse files
committed
Add .prow.yaml to move to kcp-prow
Signed-off-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
1 parent 32255ed commit 0526869

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.ci-operator.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prow.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ KUSTOMIZE_VERSION ?= v3.8.7
3333
CONTROLLER_TOOLS_VERSION ?= v0.8.0
3434
KCP_VERSION ?= 0.11.0-alpha.0
3535
YQ_VERSION ?= v4.27.2
36+
KIND_VERSION ?= v0.19.0
3637

3738
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
3839
$(KUSTOMIZE): ## Download kustomize locally if necessary.
@@ -146,6 +147,10 @@ kind-image: docker-build ## Load the controller-manager image into the kind clus
146147
kind load docker-image $(REGISTRY)/$(IMG) --name controller-runtime-example
147148

148149
$(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
149154
@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
150155
kind get kubeconfig --name controller-runtime-example > $(ARTIFACT_DIR)/kind.kubeconfig
151156

0 commit comments

Comments
 (0)