From 76c9062b88a458116c6656f5bc78626d1bf13d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Ojosnegros=20Manch=C3=B3n?= Date: Fri, 5 Aug 2022 11:22:37 +0200 Subject: [PATCH] Add new periodic test for numaresource-operator There are new tests for must-gather operations and we just need to run them daily. --- ...shift-kni-numaresources-operator-main.yaml | 21 ++++++ ...numaresources-operator-main-periodics.yaml | 74 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 ci-operator/jobs/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main-periodics.yaml diff --git a/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main.yaml b/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main.yaml index 48e47556488c..68c34b65c6db 100644 --- a/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main.yaml +++ b/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main.yaml @@ -106,6 +106,27 @@ tests: cpu: 500m memory: 1Gi workflow: optional-operators-ci-aws +- as: ci-must-gather-e2e + cron: 42 0 * * * + steps: + cluster_profile: aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-numaresources + OO_PACKAGE: numaresources-operator + OO_TARGET_NAMESPACES: '!install' + test: + - as: must-gather-e2e-test + cli: latest + commands: make test-must-gather-e2e + from: src + resources: + requests: + cpu: 500m + memory: 1Gi + workflow: optional-operators-ci-aws zz_generated_metadata: branch: main org: openshift-kni diff --git a/ci-operator/jobs/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main-periodics.yaml b/ci-operator/jobs/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main-periodics.yaml new file mode 100644 index 000000000000..e0d62549c92f --- /dev/null +++ b/ci-operator/jobs/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-main-periodics.yaml @@ -0,0 +1,74 @@ +periodics: +- agent: kubernetes + cluster: build01 + cron: 42 0 * * * + decorate: true + decoration_config: + skip_cloning: true + extra_refs: + - base_ref: main + org: openshift-kni + repo: numaresources-operator + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: aws + ci.openshift.io/generator: prowgen + job-release: "4.11" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-kni-numaresources-operator-main-ci-must-gather-e2e + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --secret-dir=/usr/local/ci-must-gather-e2e-cluster-profile + - --target=ci-must-gather-e2e + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /usr/local/ci-must-gather-e2e-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: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: cluster-profile + secret: + secretName: cluster-secrets-aws + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator