From a99c03c0023a21148f6a5c1fd52a7d88f16f97a0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 14 Jan 2019 16:00:08 +0000 Subject: [PATCH] machine-config-operator: Add e2e-aws-op job Note I called this `-op` and not `-operator` as otherwise prowgen warned me about too long of a job name. See: https://github.com/openshift/machine-config-operator/pull/298 https://github.com/openshift/machine-config-operator/issues/257 --- ...nshift-machine-config-operator-master.yaml | 4 ++ ...ine-config-operator-master-presubmits.yaml | 58 +++++++++++++++++++ 2 files changed, 62 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 dd83947b01bc..ba81c6d21faf 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 @@ -50,3 +50,7 @@ tests: commands: TEST_SUITE=openshift/conformance/parallel run-tests openshift_installer: cluster_profile: aws +- as: e2e-aws-op + commands: make test-e2e + openshift_installer_src: + cluster_profile: aws 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 e5d5a523cf4b..73610297c9c7 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 @@ -58,6 +58,64 @@ presubmits: name: prow-job-cluster-launch-installer-e2e name: job-definition trigger: ((?m)^/test( all| e2e-aws),?(\s+|$)) + - agent: kubernetes + always_run: false + branches: + - master + context: ci/prow/e2e-aws-op + decorate: true + decoration_config: + skip_cloning: true + name: pull-ci-openshift-machine-config-operator-master-e2e-aws-op + rerun_command: /test e2e-aws-op + run_if_changed: ^([^d]|d(d|o(d|cd))*([^do]|o([^cd]|c[^ds])))*(d(d|o(d|cd))*(oc?)?)?$ + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --give-pr-author-access-to-namespace=true + - --secret-dir=/usr/local/e2e-aws-op-cluster-profile + - --target=e2e-aws-op + - --template=/usr/local/e2e-aws-op + command: + - ci-operator + env: + - name: CLUSTER_TYPE + value: aws + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-machine-config-operator-master.yaml + name: ci-operator-configs + - name: JOB_NAME_SAFE + value: e2e-aws-op + - name: TEST_COMMAND + value: make test-e2e + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + limits: + cpu: 500m + requests: + cpu: 10m + volumeMounts: + - mountPath: /usr/local/e2e-aws-op-cluster-profile + name: cluster-profile + - mountPath: /usr/local/e2e-aws-op + name: job-definition + subPath: cluster-launch-installer-src.yaml + serviceAccountName: ci-operator + volumes: + - name: cluster-profile + projected: + sources: + - secret: + name: cluster-secrets-aws + - configMap: + name: prow-job-cluster-launch-installer-src + name: job-definition + trigger: ((?m)^/test( all| e2e-aws-op),?(\s+|$)) - agent: kubernetes always_run: true branches: