From 7b492163aa6d364a7eb8812daaaefc1abe176f95 Mon Sep 17 00:00:00 2001 From: Yuval Goldberg Date: Sun, 13 Dec 2020 15:27:02 +0200 Subject: [PATCH] Add e2e-metal-assisted to machine-config-operator Add an optional e2e-metal-assisted job for machine-config-operator Generated by manually changing `ci-operator/config/...`, running: ``` $ make update ``` and tuning the configurable always_run and optional fields. --- ...nshift-machine-config-operator-master.yaml | 8 +++ ...ine-config-operator-master-presubmits.yaml | 70 +++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-master.yaml b/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-master.yaml index 92ce5b444e35c..c97fba9becec1 100644 --- a/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-master.yaml +++ b/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-master.yaml @@ -1,4 +1,8 @@ base_images: + assisted-test-infra: + name: assisted-test + namespace: ocp-kni + tag: assisted-test-infra base: name: "4.7" namespace: ocp @@ -137,6 +141,10 @@ tests: steps: cluster_profile: aws workflow: openshift-e2e-aws-ovn +- as: e2e-metal-assisted + steps: + cluster_profile: packet + workflow: baremetalds-assisted zz_generated_metadata: branch: master org: openshift diff --git a/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-master-presubmits.yaml b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-master-presubmits.yaml index 13c84153a1214..ee916948d4b0f 100644 --- a/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-master-presubmits.yaml +++ b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-master-presubmits.yaml @@ -627,6 +627,76 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-gcp-op,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - master + cluster: build01 + context: ci/prow/e2e-metal-assisted + 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-machine-config-operator-master-e2e-metal-assisted + optional: true + rerun_command: /test e2e-metal-assisted + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-password-file=/etc/boskos/password + - --report-password-file=/etc/report/password.txt + - --report-username=ci + - --secret-dir=/usr/local/e2e-metal-assisted-cluster-profile + - --target=e2e-metal-assisted + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /usr/local/e2e-metal-assisted-cluster-profile + name: cluster-profile + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: password + path: password + secretName: boskos-credentials + - name: cluster-profile + projected: + sources: + - secret: + name: cluster-secrets-packet + - configMap: + name: cluster-profile-packet + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )e2e-metal-assisted,?($|\s.*) - agent: kubernetes always_run: true branches: