Skip to content

Commit b4f6760

Browse files
authored
Merge pull request #2975 from xrstf/add-prowjobs
🌱 Add Prowjobs
2 parents d577569 + 0da5e54 commit b4f6760

File tree

3 files changed

+180
-5
lines changed

3 files changed

+180
-5
lines changed

.ci-operator.yaml

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

.prow.yaml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
presubmits:
2+
- name: pull-kcp-verify
3+
always_run: true
4+
decorate: true
5+
clone_uri: "https://github.com/kcp-dev/kcp"
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+
- verify-boilerplate
14+
- verify-modules
15+
- verify-k8s-deps
16+
- verify-imports
17+
resources:
18+
requests:
19+
memory: 1Gi
20+
cpu: 1
21+
22+
- name: pull-kcp-verify-codegen
23+
always_run: true
24+
decorate: true
25+
clone_uri: "https://github.com/kcp-dev/kcp"
26+
labels:
27+
preset-goproxy: "true"
28+
spec:
29+
containers:
30+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
31+
command:
32+
- make
33+
- verify-codegen
34+
resources:
35+
requests:
36+
memory: 1Gi
37+
cpu: 1
38+
39+
- name: pull-kcp-lint
40+
always_run: true
41+
decorate: true
42+
clone_uri: "https://github.com/kcp-dev/kcp"
43+
labels:
44+
preset-goproxy: "true"
45+
spec:
46+
containers:
47+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
48+
command:
49+
- make
50+
- lint
51+
resources:
52+
requests:
53+
memory: 4Gi
54+
cpu: 2
55+
56+
- name: pull-kcp-test-unit
57+
always_run: true
58+
decorate: true
59+
clone_uri: "https://github.com/kcp-dev/kcp"
60+
labels:
61+
preset-goproxy: "true"
62+
spec:
63+
containers:
64+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
65+
command:
66+
- make
67+
- test
68+
env:
69+
- name: USE_GOTESTSUM
70+
value: '1'
71+
resources:
72+
requests:
73+
memory: 4Gi
74+
cpu: 2
75+
76+
- name: pull-kcp-test-e2e
77+
always_run: true
78+
decorate: true
79+
clone_uri: "https://github.com/kcp-dev/kcp"
80+
labels:
81+
preset-goproxy: "true"
82+
spec:
83+
containers:
84+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
85+
command:
86+
- ./hack/run-with-prometheus.sh
87+
- make
88+
- test-e2e
89+
env:
90+
- name: SUITES
91+
value: control-plane
92+
- name: USE_GOTESTSUM
93+
value: '1'
94+
- name: KUBE_CACHE_MUTATION_DETECTOR
95+
value: '1'
96+
- name: E2E_PARALLELISM
97+
value: '3'
98+
resources:
99+
requests:
100+
memory: 4Gi
101+
cpu: 3
102+
103+
- name: pull-kcp-test-e2e-multiple-runs
104+
always_run: true
105+
decorate: true
106+
clone_uri: "https://github.com/kcp-dev/kcp"
107+
labels:
108+
preset-goproxy: "true"
109+
spec:
110+
containers:
111+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
112+
command:
113+
- ./hack/run-with-prometheus.sh
114+
- make
115+
- test-e2e
116+
env:
117+
- name: SUITES
118+
value: control-plane
119+
- name: USE_GOTESTSUM
120+
value: '1'
121+
- name: KUBE_CACHE_MUTATION_DETECTOR
122+
value: '1'
123+
- name: COUNT
124+
value: '3'
125+
- name: E2E_PARALLELISM
126+
value: '3'
127+
resources:
128+
requests:
129+
memory: 4Gi
130+
cpu: 3
131+
132+
- name: pull-kcp-test-e2e-shared
133+
always_run: true
134+
decorate: true
135+
clone_uri: "https://github.com/kcp-dev/kcp"
136+
labels:
137+
preset-goproxy: "true"
138+
spec:
139+
containers:
140+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
141+
command:
142+
- ./hack/run-with-prometheus.sh
143+
- make
144+
- test-e2e-shared-minimal
145+
env:
146+
- name: SUITES
147+
value: control-plane
148+
- name: USE_GOTESTSUM
149+
value: '1'
150+
- name: KUBE_CACHE_MUTATION_DETECTOR
151+
value: '1'
152+
resources:
153+
requests:
154+
memory: 4Gi
155+
cpu: 3
156+
157+
- name: pull-kcp-test-e2e-sharded
158+
always_run: true
159+
decorate: true
160+
clone_uri: "https://github.com/kcp-dev/kcp"
161+
labels:
162+
preset-goproxy: "true"
163+
spec:
164+
containers:
165+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
166+
command:
167+
- ./hack/run-with-prometheus.sh
168+
- make
169+
- test-e2e-sharded-minimal
170+
env:
171+
- name: SUITES
172+
value: control-plane
173+
- name: USE_GOTESTSUM
174+
value: '1'
175+
- name: KUBE_CACHE_MUTATION_DETECTOR
176+
value: '1'
177+
resources:
178+
requests:
179+
memory: 4Gi
180+
cpu: 3

hack/verify-go-versions.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ set -o pipefail
1919

2020
VERSION=$(grep "go 1." go.mod | sed 's/go //')
2121

22-
grep "tag: \"" .ci-operator.yaml | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in .ci-operator.yaml, expected ${VERSION}"; exit 1; }
2322
grep "FROM .* golang:" Dockerfile | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in Dockerfile, expected ${VERSION}"; exit 1; }
2423
grep -w "go-version:" .github/workflows/*.yaml | { ! grep -v "go-version: v${VERSION}"; } || { echo "Wrong go version in .github/workflows/*.yaml, expected ${VERSION}"; exit 1; }
2524

0 commit comments

Comments
 (0)