From e38a3a5dfa4c369a0fdbfda9a8a7b5720efeb6e3 Mon Sep 17 00:00:00 2001 From: Abhinav Dahiya Date: Fri, 8 May 2020 09:49:43 -0700 Subject: [PATCH] openshift/installer: add verify-codegen test --- .../installer/openshift-installer-master.yaml | 4 ++ ...openshift-installer-master-presubmits.yaml | 45 +++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/ci-operator/config/openshift/installer/openshift-installer-master.yaml b/ci-operator/config/openshift/installer/openshift-installer-master.yaml index 4be4fae54ff44..8889e0edd88f2 100644 --- a/ci-operator/config/openshift/installer/openshift-installer-master.yaml +++ b/ci-operator/config/openshift/installer/openshift-installer-master.yaml @@ -131,6 +131,10 @@ tests: commands: IS_CONTAINER=TRUE ./hack/verify-vendor.sh container: from: src +- as: verify-codegen + commands: IS_CONTAINER=TRUE ./hack/verify-codegen.sh + container: + from: src - as: e2e-aws steps: cluster_profile: aws diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-master-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-master-presubmits.yaml index 8f46a6670475c..d3bcd8ae27a01 100644 --- a/ci-operator/jobs/openshift/installer/openshift-installer-master-presubmits.yaml +++ b/ci-operator/jobs/openshift/installer/openshift-installer-master-presubmits.yaml @@ -2424,6 +2424,51 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )unit,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - master + cluster: api.ci + context: ci/prow/verify-codegen + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-master-verify-codegen + rerun_command: /test verify-codegen + spec: + containers: + - args: + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-password-file=/etc/report/password.txt + - --report-username=ci + - --target=verify-codegen + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: regcred + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )verify-codegen,?($|\s.*) - agent: kubernetes always_run: false branches: