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

🌱 Add .prow.yaml to move to kcp-prow #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .ci-operator.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions .prow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
presubmits:
- name: pull-controller-runtime-example-e2e
always_run: true
decorate: true
clone_uri: "ssh://[email protected]/kcp-dev/controller-runtime-example.git"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- test-e2e

- name: pull-controller-runtime-example-unit
always_run: true
decorate: true
clone_uri: "ssh://[email protected]/kcp-dev/controller-runtime-example.git"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- test
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ KUSTOMIZE_VERSION ?= v3.8.7
CONTROLLER_TOOLS_VERSION ?= v0.8.0
KCP_VERSION ?= 0.11.0-alpha.0
YQ_VERSION ?= v4.27.2
KIND_VERSION ?= 0.19.0

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

$(ARTIFACT_DIR)/kind.kubeconfig: $(ARTIFACT_DIR) ## Run a kind cluster and generate a $KUBECONFIG for it.
if ! type "kind" > /dev/null; then \
wget -q -O /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v${KIND_VERSION}/kind-linux-amd64 && \
chmod +x /usr/local/bin/kind; \
fi
@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
kind get kubeconfig --name controller-runtime-example > $(ARTIFACT_DIR)/kind.kubeconfig

Expand Down