From 4ebb930984738563f6ffbb6973b6da8ba781fac7 Mon Sep 17 00:00:00 2001 From: Ronny Baturov Date: Mon, 4 Nov 2024 14:25:31 +0200 Subject: [PATCH] Added NROP upgrade test Signed-off-by: Ronny Baturov --- ...i-numaresources-operator-release-4.17.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-release-4.17.yaml b/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-release-4.17.yaml index 0525683ade097..2eec5a11afb48 100644 --- a/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-release-4.17.yaml +++ b/ci-operator/config/openshift-kni/numaresources-operator/openshift-kni-numaresources-operator-release-4.17.yaml @@ -162,6 +162,40 @@ tests: env: PROJECT_NAME: numaresources-operator workflow: openshift-ci-security +- as: e2e-in-cluster-build + cluster_claim: + architecture: amd64 + cloud: aws + owner: openshift-ci + product: ocp + timeout: 1h0m0s + version: "4.17" + steps: + test: + - as: install + cli: latest + commands: | + oc create namespace my-namespace + operator-sdk run bundle -n my-namespace "$OO_BUNDLE_INIT" # install my-operator with the version before upgrading + oc wait --for condition=Available -n my-namespace deployment my-operator # wait until my-operator is ready + dependencies: + - env: OO_BUNDLE_INIT + name: os-min9 + - as: upgrade + cli: latest + commands: | + oc create namespace my-namespace + operator-sdk run bundle-upgrade -n my-namespace "$OO_BUNDLE" # upgrade my-operator + wait_until_upgrade_is_complete.sh # wait until the new version of my-operator is ready + dependencies: + - env: OO_BUNDLE + name: my-bundle + from: operator-sdk + resources: + requests: + cpu: 500m + memory: 1Gi + workflow: generic-claim zz_generated_metadata: branch: release-4.17 org: openshift-kni