Skip to content

Commit 6a395a7

Browse files
committed
NO-JIRA: cvo: add test/verify
It does only yamllint at the moment.
1 parent bea2b3c commit 6a395a7

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ base_images:
1919
name: builder
2020
namespace: ocp
2121
tag: rhel-9-golang-1.23-openshift-4.19
22+
yamllint:
23+
name: yamllint
24+
namespace: ci
25+
tag: latest
2226
build_root:
2327
from_repository: true
2428
images:
@@ -180,6 +184,12 @@ tests:
180184
cpu: 100m
181185
memory: 200Mi
182186
workflow: openshift-e2e-azure
187+
- as: verify
188+
commands: make verify
189+
container:
190+
clone: true
191+
from: yamllint
192+
run_if_changed: (\.yaml|\.yml)$
183193
zz_generated_metadata:
184194
branch: main
185195
org: openshift

ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-main-presubmits.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,3 +1225,57 @@ presubmits:
12251225
secret:
12261226
secretName: result-aggregator
12271227
trigger: (?m)^/test( | .* )unit,?($|\s.*)
1228+
- agent: kubernetes
1229+
always_run: false
1230+
branches:
1231+
- ^main$
1232+
- ^main-
1233+
cluster: build06
1234+
context: ci/prow/yamllint
1235+
decorate: true
1236+
labels:
1237+
ci.openshift.io/generator: prowgen
1238+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
1239+
name: pull-ci-openshift-cluster-version-operator-main-yamllint
1240+
rerun_command: /test yamllint
1241+
run_if_changed: install/
1242+
spec:
1243+
containers:
1244+
- args:
1245+
- --gcs-upload-secret=/secrets/gcs/service-account.json
1246+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
1247+
- --report-credentials-file=/etc/report/credentials
1248+
- --target=yamllint
1249+
command:
1250+
- ci-operator
1251+
image: ci-operator:latest
1252+
imagePullPolicy: Always
1253+
name: ""
1254+
resources:
1255+
requests:
1256+
cpu: 10m
1257+
volumeMounts:
1258+
- mountPath: /secrets/gcs
1259+
name: gcs-credentials
1260+
readOnly: true
1261+
- mountPath: /secrets/manifest-tool
1262+
name: manifest-tool-local-pusher
1263+
readOnly: true
1264+
- mountPath: /etc/pull-secret
1265+
name: pull-secret
1266+
readOnly: true
1267+
- mountPath: /etc/report
1268+
name: result-aggregator
1269+
readOnly: true
1270+
serviceAccountName: ci-operator
1271+
volumes:
1272+
- name: manifest-tool-local-pusher
1273+
secret:
1274+
secretName: manifest-tool-local-pusher
1275+
- name: pull-secret
1276+
secret:
1277+
secretName: registry-pull-credentials
1278+
- name: result-aggregator
1279+
secret:
1280+
secretName: result-aggregator
1281+
trigger: (?m)^/test( | .* )yamllint,?($|\s.*)

0 commit comments

Comments
 (0)