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

WIP: Added NROP upgrade test #58457

Open
wants to merge 3 commits 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
@@ -0,0 +1,113 @@
base_images:
cli-operator-sdk:
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-numaresources-tests-4.17:
name: numaresources-operator-4.17
namespace: ocp-kni
tag: numaresources-operator-tests
operator-sdk:
name: "4.17"
namespace: origin
tag: operator-sdk
os-min9:
name: ubi-minimal
namespace: ocp
tag: "9"
binary_build_commands: make generate fmt vet binary binary-rte binary-e2e-all binary-numacell
build-topics
build_root:
project_image:
dockerfile_path: Dockerfile.tools
images:
- dockerfile_path: Dockerfile.openshift
from: os-min9
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/src/github.com/openshift-kni/numaresources-operator/bin/.
to: numaresources-operator
- dockerfile_path: bundle.Dockerfile
to: numaresources-operator-bundle
releases:
initial:
candidate:
product: ocp
stream: nightly
version: "4.17"
latest:
candidate:
product: ocp
stream: nightly
version: "4.18"
resources:
'*':
requests:
cpu: 150m
memory: 250Mi
tests:
- as: e2e-operator-upgrade
steps:
cluster_profile: aws-telco
dependencies:
OO_BUNDLE: numaresources-operator-bundle-4.17
OO_BUNDLE_NEW: numaresources-operator-bundle
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:initial
OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE: release:latest
env:
BASE_DOMAIN: telco5g-ci.devcluster.openshift.com
OO_INSTALL_MODE: OwnNamespace
OO_INSTALL_NAMESPACE: openshift-numaresources
OPENSHIFT_SKIP_EXTERNAL_TESTS: "true"
USER_TAGS: |
ci-job-source prowci
ci-job-branch release-4.18
ci-job-fullname openshift-kni-e2e-operator-upgrade-numaresources-operator-release-4.18
ci-job-type e2e-operator-upgrade
ci-repo-name numaresources-operator
ci-org-name openshift-kni
test:
- ref: optional-operators-operator-sdk
- as: test-install-e2e
cli: latest
commands: ./e2e-nrop-install.test --ginkgo.v --ginkgo.timeout=2h
from: operator-numaresources-tests-4.17
resources:
requests:
cpu: 500m
memory: 1Gi
- ref: telco5g-ocp-upgrade
- as: upgrade-operator
cli: latest
commands: |
operator-sdk run bundle-upgrade --timeout=10m --security-context-config restricted -n openshift-numaresources "$OO_BUNDLE_NEW"
oc wait --for condition=Available -n openshift-numaresources deployment numaresources-controller-manager
dependencies:
- env: OO_BUNDLE_NEW
name: ${OO_BUNDLE_NEW}
from: operator-sdk
resources:
requests:
cpu: 1000m
memory: 500Mi
- as: test-upgrade-e2e
cli: latest
commands: make test-upgrade-e2e
from: src
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: telco5g-nrop-upgrade
timeout: 6h0m0s
zz_generated_metadata:
branch: release-4.18
org: openshift-kni
repo: numaresources-operator
variant: 4.18-upgrade-from-stable-4.17
Original file line number Diff line number Diff line change
@@ -1,5 +1,141 @@
presubmits:
openshift-kni/numaresources-operator:
- agent: kubernetes
always_run: true
branches:
- ^release-4\.18$
- ^release-4\.18-
cluster: build11
context: ci/prow/4.18-upgrade-from-stable-4.17-e2e-operator-upgrade
decorate: true
decoration_config:
skip_cloning: true
timeout: 6h0m0s
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: aws-telco
ci-operator.openshift.io/variant: 4.18-upgrade-from-stable-4.17
ci.openshift.io/generator: prowgen
job-release: "4.18"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-kni-numaresources-operator-release-4.18-4.18-upgrade-from-stable-4.17-e2e-operator-upgrade
rerun_command: /test 4.18-upgrade-from-stable-4.17-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
- --variant=4.18-upgrade-from-stable-4.17
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( | .* )4.18-upgrade-from-stable-4.17-e2e-operator-upgrade,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^release-4\.18$
- ^release-4\.18-
cluster: build11
context: ci/prow/4.18-upgrade-from-stable-4.17-images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: 4.18-upgrade-from-stable-4.17
ci.openshift.io/generator: prowgen
job-release: "4.18"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-kni-numaresources-operator-release-4.18-4.18-upgrade-from-stable-4.17-images
rerun_command: /test 4.18-upgrade-from-stable-4.17-images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
- --variant=4.18-upgrade-from-stable-4.17
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- 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: 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( | .* )4.18-upgrade-from-stable-4.17-images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
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,12 @@
{
"path": "telco5g/nrop/telco5g-nrop-upgrade-workflow.yaml",
"owners": {
"approvers": [
"ffromani",
"shajmakh",
"swatisehgal",
"Tal-or",
"yanirq"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
workflow:
as: telco5g-nrop-upgrade
steps:
allow_best_effort_post_steps: true
pre:
- chain: ipi-aws-pre-stableinitial
post:
- ref: openshift-e2e-test-capabilities-check
- chain: ipi-aws-post
documentation: |-
This workflow will be used to install numaresources-operator and upgrade it.
6 changes: 6 additions & 0 deletions ci-operator/step-registry/telco5g/ocp-upgrade/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- ffromani
- shajmakh
- swatisehgal
- Tal-or
- yanirq
Loading