Skip to content

Commit 1da318c

Browse files
authored
CI for ARO-Installer release-4.13 branch (#44857)
1 parent cae647c commit 1da318c

File tree

2 files changed

+264
-0
lines changed

2 files changed

+264
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
base_images:
2+
golangci-lint:
3+
name: golangci-lint
4+
namespace: ci
5+
tag: v1.46.0
6+
build_root:
7+
image_stream_tag:
8+
name: release
9+
namespace: openshift
10+
tag: golang-1.19
11+
images:
12+
- dockerfile_path: Dockerfile.aro
13+
to: unused
14+
resources:
15+
'*':
16+
limits:
17+
memory: 8Gi
18+
requests:
19+
cpu: "1"
20+
memory: 8Gi
21+
tests:
22+
- as: unit
23+
commands: make unit-test-go
24+
container:
25+
from: src
26+
- as: validate
27+
commands: make validate-go
28+
container:
29+
from: src
30+
- as: lint
31+
commands: |
32+
export GOCACHE=/tmp/
33+
export GOLANGCI_LINT_CACHE=/tmp/.cache
34+
export GOPROXY=https://proxy.golang.org
35+
golangci-lint run --verbose
36+
container:
37+
clone: true
38+
from: golangci-lint
39+
zz_generated_metadata:
40+
branch: release-4.13
41+
org: openshift
42+
repo: ARO-Installer
Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
presubmits:
2+
openshift/ARO-Installer:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^release-4\.13$
7+
- ^release-4\.13-
8+
cluster: build03
9+
context: ci/prow/images
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci.openshift.io/generator: prowgen
15+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
16+
name: pull-ci-openshift-ARO-Installer-release-4.13-images
17+
rerun_command: /test images
18+
spec:
19+
containers:
20+
- args:
21+
- --gcs-upload-secret=/secrets/gcs/service-account.json
22+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=[images]
25+
command:
26+
- ci-operator
27+
image: ci-operator:latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/gcs
35+
name: gcs-credentials
36+
readOnly: true
37+
- mountPath: /secrets/manifest-tool
38+
name: manifest-tool-local-pusher
39+
readOnly: true
40+
- mountPath: /etc/pull-secret
41+
name: pull-secret
42+
readOnly: true
43+
- mountPath: /etc/report
44+
name: result-aggregator
45+
readOnly: true
46+
serviceAccountName: ci-operator
47+
volumes:
48+
- name: manifest-tool-local-pusher
49+
secret:
50+
secretName: manifest-tool-local-pusher
51+
- name: pull-secret
52+
secret:
53+
secretName: registry-pull-credentials
54+
- name: result-aggregator
55+
secret:
56+
secretName: result-aggregator
57+
trigger: (?m)^/test( | .* )images,?($|\s.*)
58+
- agent: kubernetes
59+
always_run: true
60+
branches:
61+
- ^release-4\.13$
62+
- ^release-4\.13-
63+
cluster: build03
64+
context: ci/prow/lint
65+
decorate: true
66+
decoration_config:
67+
skip_cloning: true
68+
labels:
69+
ci.openshift.io/generator: prowgen
70+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
71+
name: pull-ci-openshift-ARO-Installer-release-4.13-lint
72+
rerun_command: /test lint
73+
spec:
74+
containers:
75+
- args:
76+
- --gcs-upload-secret=/secrets/gcs/service-account.json
77+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
78+
- --report-credentials-file=/etc/report/credentials
79+
- --target=lint
80+
command:
81+
- ci-operator
82+
image: ci-operator:latest
83+
imagePullPolicy: Always
84+
name: ""
85+
resources:
86+
requests:
87+
cpu: 10m
88+
volumeMounts:
89+
- mountPath: /secrets/gcs
90+
name: gcs-credentials
91+
readOnly: true
92+
- mountPath: /secrets/manifest-tool
93+
name: manifest-tool-local-pusher
94+
readOnly: true
95+
- mountPath: /etc/pull-secret
96+
name: pull-secret
97+
readOnly: true
98+
- mountPath: /etc/report
99+
name: result-aggregator
100+
readOnly: true
101+
serviceAccountName: ci-operator
102+
volumes:
103+
- name: manifest-tool-local-pusher
104+
secret:
105+
secretName: manifest-tool-local-pusher
106+
- name: pull-secret
107+
secret:
108+
secretName: registry-pull-credentials
109+
- name: result-aggregator
110+
secret:
111+
secretName: result-aggregator
112+
trigger: (?m)^/test( | .* )lint,?($|\s.*)
113+
- agent: kubernetes
114+
always_run: true
115+
branches:
116+
- ^release-4\.13$
117+
- ^release-4\.13-
118+
cluster: build03
119+
context: ci/prow/unit
120+
decorate: true
121+
decoration_config:
122+
skip_cloning: true
123+
labels:
124+
ci.openshift.io/generator: prowgen
125+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
126+
name: pull-ci-openshift-ARO-Installer-release-4.13-unit
127+
rerun_command: /test unit
128+
spec:
129+
containers:
130+
- args:
131+
- --gcs-upload-secret=/secrets/gcs/service-account.json
132+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
133+
- --report-credentials-file=/etc/report/credentials
134+
- --target=unit
135+
command:
136+
- ci-operator
137+
image: ci-operator:latest
138+
imagePullPolicy: Always
139+
name: ""
140+
resources:
141+
requests:
142+
cpu: 10m
143+
volumeMounts:
144+
- mountPath: /secrets/gcs
145+
name: gcs-credentials
146+
readOnly: true
147+
- mountPath: /secrets/manifest-tool
148+
name: manifest-tool-local-pusher
149+
readOnly: true
150+
- mountPath: /etc/pull-secret
151+
name: pull-secret
152+
readOnly: true
153+
- mountPath: /etc/report
154+
name: result-aggregator
155+
readOnly: true
156+
serviceAccountName: ci-operator
157+
volumes:
158+
- name: manifest-tool-local-pusher
159+
secret:
160+
secretName: manifest-tool-local-pusher
161+
- name: pull-secret
162+
secret:
163+
secretName: registry-pull-credentials
164+
- name: result-aggregator
165+
secret:
166+
secretName: result-aggregator
167+
trigger: (?m)^/test( | .* )unit,?($|\s.*)
168+
- agent: kubernetes
169+
always_run: true
170+
branches:
171+
- ^release-4\.13$
172+
- ^release-4\.13-
173+
cluster: build03
174+
context: ci/prow/validate
175+
decorate: true
176+
decoration_config:
177+
skip_cloning: true
178+
labels:
179+
ci.openshift.io/generator: prowgen
180+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
181+
name: pull-ci-openshift-ARO-Installer-release-4.13-validate
182+
rerun_command: /test validate
183+
spec:
184+
containers:
185+
- args:
186+
- --gcs-upload-secret=/secrets/gcs/service-account.json
187+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
188+
- --report-credentials-file=/etc/report/credentials
189+
- --target=validate
190+
command:
191+
- ci-operator
192+
image: ci-operator:latest
193+
imagePullPolicy: Always
194+
name: ""
195+
resources:
196+
requests:
197+
cpu: 10m
198+
volumeMounts:
199+
- mountPath: /secrets/gcs
200+
name: gcs-credentials
201+
readOnly: true
202+
- mountPath: /secrets/manifest-tool
203+
name: manifest-tool-local-pusher
204+
readOnly: true
205+
- mountPath: /etc/pull-secret
206+
name: pull-secret
207+
readOnly: true
208+
- mountPath: /etc/report
209+
name: result-aggregator
210+
readOnly: true
211+
serviceAccountName: ci-operator
212+
volumes:
213+
- name: manifest-tool-local-pusher
214+
secret:
215+
secretName: manifest-tool-local-pusher
216+
- name: pull-secret
217+
secret:
218+
secretName: registry-pull-credentials
219+
- name: result-aggregator
220+
secret:
221+
secretName: result-aggregator
222+
trigger: (?m)^/test( | .* )validate,?($|\s.*)

0 commit comments

Comments
 (0)