Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added NROP upgrade test #58457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ base_images:
name: cli-operator-sdk
namespace: ocp
tag: v1.31.0
numaresources-operator-bundle-4.17:
name: numaresources-operator-4.17
namespace: ocp-kni
tag: numaresources-operator-bundle
operator-sdk:
name: "4.17"
namespace: origin
Expand Down Expand Up @@ -183,6 +187,26 @@ tests:
env:
PROJECT_NAME: numaresources-operator
workflow: openshift-ci-security
- as: e2e-operator-upgrade
steps:
cluster_profile: aws-telco
dependencies:
OO_BUNDLE: numaresources-operator-bundle
OO_BUNDLE_OLD: numaresources-operator-bundle-4.17
env:
BASE_DOMAIN: telco5g-ci.devcluster.openshift.com
test:
- ref: telco5g-nrop-install
- ref: telco5g-nrop-upgrade
- as: e2e-test
cli: latest
commands: make test-e2e
from: src
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: ipi-aws
zz_generated_metadata:
branch: main
org: openshift-kni
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,81 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )ci-unit,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build05
context: ci/prow/e2e-operator-upgrade
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: aws-telco
ci.openshift.io/generator: prowgen
job-release: "4.18"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-kni-numaresources-operator-main-e2e-operator-upgrade
rerun_command: /test e2e-operator-upgrade
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
- --target=e2e-operator-upgrade
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: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
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: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-operator-upgrade,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
6 changes: 6 additions & 0 deletions ci-operator/step-registry/telco5g/nrop/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- ffromani
- shajmakh
- swatisehgal
- Tal-or
- yanirq
6 changes: 6 additions & 0 deletions ci-operator/step-registry/telco5g/nrop/install/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- ffromani
- shajmakh
- swatisehgal
- Tal-or
- yanirq
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

oc create namespace numaresources-operator
operator-sdk run bundle -n numaresources-operator --security-context-config restricted "$OO_BUNDLE_OLD"
oc wait --for condition=Available -n numaresources-operator deployment numaresources-controller-manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"path": "telco5g/nrop/install/telco5g-nrop-install-ref.yaml",
"owners": {
"approvers": [
"ffromani",
"shajmakh",
"swatisehgal",
"Tal-or",
"yanirq"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ref:
as: telco5g-nrop-install
cli: latest
commands: telco5g-nrop-install-commands.sh
dependencies:
- env: OO_BUNDLE_OLD
name: ${OO_BUNDLE_OLD}
from: operator-sdk
resources:
requests:
cpu: 1000m
memory: 500Mi
6 changes: 6 additions & 0 deletions ci-operator/step-registry/telco5g/nrop/upgrade/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- ffromani
- shajmakh
- swatisehgal
- Tal-or
- yanirq
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

operator-sdk run bundle-upgrade --timeout=10m --security-context-config restricted -n numaresources-operator "$OO_BUNDLE"
oc wait --for condition=Available -n numaresources-operator deployment numaresources-controller-manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"path": "telco5g/nrop/upgrade/telco5g-nrop-upgrade-ref.yaml",
"owners": {
"approvers": [
"ffromani",
"shajmakh",
"swatisehgal",
"Tal-or",
"yanirq"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ref:
as: telco5g-nrop-upgrade
cli: latest
commands: telco5g-nrop-upgrade-commands.sh
dependencies:
- env: OO_BUNDLE
name: ${OO_BUNDLE}
from: operator-sdk
resources:
requests:
cpu: 1000m
memory: 500Mi