Skip to content

Commit

Permalink
Include NMO upgrade installation test in OCP-e2e cluster test for OCP… (
Browse files Browse the repository at this point in the history
#51516)

* Include NMO upgrade installation test in OCP-e2e cluster test for OCP 4.12-4.15

Make the OCP-e2e cluster test a three-step test- installing the old version, updating to the latest, and testing the E2E test

* Include FAR upgrade installation test in OCP-e2e cluster test

Make the OCP-e2e cluster test a three-step test- installing the old version, updating to the latest, and testing the E2E test

* Skip out-of-service test on OCP 4.12 and FAR

E2E test of FAR 4.12 was expecting to run the out-of-service tests but it isn't supported on OCP 4.12
  • Loading branch information
razo7 authored May 6, 2024
1 parent 3e9ecdf commit 10e1a03
Show file tree
Hide file tree
Showing 9 changed files with 319 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
base_images:
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
os:
name: centos
namespace: origin
Expand Down Expand Up @@ -43,24 +39,53 @@ 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: far-install
OPERATOR_NAMESPACE: far-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
make create-ns
# 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/fence-agents-remediation-operator-bundle:v0.3.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
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" SKIP_OOST_REMEDIATION_VERIFICATION="true"
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" SKIP_OOST_REMEDIATION_VERIFICATION="true"
&& make ocp-aws-credentials test-e2e
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
base_images:
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
os:
name: centos
namespace: origin
Expand Down Expand Up @@ -43,24 +39,53 @@ 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: far-install
OPERATOR_NAMESPACE: far-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
make create-ns
# 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/fence-agents-remediation-operator-bundle:v0.3.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
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" && make ocp-aws-credentials
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" && make ocp-aws-credentials
test-e2e
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
base_images:
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
os:
name: centos
namespace: origin
Expand Down Expand Up @@ -43,24 +39,53 @@ 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: far-install
OPERATOR_NAMESPACE: far-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
make create-ns
# 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/fence-agents-remediation-operator-bundle:v0.3.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
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" && make ocp-aws-credentials
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" && make ocp-aws-credentials
test-e2e
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
base_images:
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
os:
name: centos
namespace: origin
Expand Down Expand Up @@ -43,24 +39,53 @@ 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: far-install
OPERATOR_NAMESPACE: far-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
make create-ns
# 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/fence-agents-remediation-operator-bundle:v0.3.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
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" && make ocp-aws-credentials
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" && make ocp-aws-credentials
test-e2e
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
base_images:
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.30.0
os:
name: centos
namespace: origin
Expand Down Expand Up @@ -43,24 +39,53 @@ 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: far-install
OPERATOR_NAMESPACE: far-install
test:
- as: e2e-install-operator-last-version
cli: latest
commands: |
make create-ns
# 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/fence-agents-remediation-operator-bundle:v0.3.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
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: OPERATOR_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$OO_INSTALL_NAMESPACE" && make ocp-aws-credentials
commands: export OPERATOR_NS="$OPERATOR_NAMESPACE" && make ocp-aws-credentials
test-e2e
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
Loading

0 comments on commit 10e1a03

Please sign in to comment.