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

Commit

Permalink
Add .prow.yaml to move to kcp-prow
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhita Raghunath <[email protected]>
  • Loading branch information
nikhita committed Jun 1, 2023
1 parent 32255ed commit 0526869
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
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 ?= v0.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

0 comments on commit 0526869

Please sign in to comment.