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

Test NMO operator upgrade from v0.17.0 to latest #50559

Merged
merged 2 commits into from
Apr 15, 2024
Merged
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,10 +3,6 @@ base_images:
name: "4.16"
namespace: ocp
tag: base
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
binary_build_commands: make build
build_root:
from_repository: true
Expand Down Expand Up @@ -43,22 +39,52 @@ tests:
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: medik8s-aws
dependencies:
OO_BUNDLE: my-bundle
env:
BASE_DOMAIN: medik8s-ci.projects.ecosystem.sysdeseng.com
OO_INSTALL_NAMESPACE: nmo-install
OPERATOR_NAMESPACE: nmo-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
oc create namespace "$OPERATOR_NAMESPACE"

# workaround for OLM pod not running with restricted PSA
oc label --overwrite ns "$OPERATOR_NAMESPACE" security.openshift.io/scc.podSecurityLabelSync=false
oc label --overwrite ns "$OPERATOR_NAMESPACE" pod-security.kubernetes.io/enforce=privileged

# OPERATOR_NAMESPACE variable is used by bundle-run and bundle-run-update
BUNDLE_IMG=quay.io/medik8s/node-maintenance-operator-bundle:v0.17.0 make bundle-run
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-upgrade-operator-latest
cli: latest
commands: BUNDLE_IMG="$OO_BUNDLE" make bundle-run-update
razo7 marked this conversation as resolved.
Show resolved Hide resolved
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" && make cluster-functest
cli: latest
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" && make cluster-functest
env:
- name: OO_INSTALL_NAMESPACE
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: optional-operators-ci-operator-sdk-aws
workflow: ipi-aws
zz_generated_metadata:
branch: main
org: medik8s
Expand Down