diff --git a/ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml b/ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml index ea9cc118438e8..9f7f96b3d5b98 100644 --- a/ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml +++ b/ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml @@ -19,6 +19,10 @@ base_images: name: builder namespace: ocp tag: rhel-9-golang-1.23-openshift-4.19 + yamllint: + name: rust + namespace: cincinnati-ci-public + tag: boot-root-1.79.0 build_root: from_repository: true images: @@ -171,6 +175,12 @@ tests: CHECK_MOD_LIST: "false" test: - ref: go-verify-deps +- as: verify-yaml + commands: make verify-yaml + container: + clone: true + from: yamllint + run_if_changed: (\.yaml|\.yml)$ zz_generated_metadata: branch: main org: openshift diff --git a/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-main-presubmits.yaml b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-main-presubmits.yaml index d8db20b650c30..c1bd11b7b3d72 100644 --- a/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-main-presubmits.yaml +++ b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-main-presubmits.yaml @@ -1211,3 +1211,57 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )verify-deps,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^main$ + - ^main- + cluster: build06 + context: ci/prow/verify-yaml + decorate: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-cluster-version-operator-main-verify-yaml + rerun_command: /test verify-yaml + run_if_changed: (\.yaml|\.yml)$ + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=verify-yaml + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )verify-yaml,?($|\s.*)