Skip to content

OPRUN-4519: block upgrades from 4.23 to 5.0#3803

Open
fgiudici wants to merge 2 commits intooperator-framework:masterfrom
fgiudici:OPRUN-4519-upgrade-edges-tests
Open

OPRUN-4519: block upgrades from 4.23 to 5.0#3803
fgiudici wants to merge 2 commits intooperator-framework:masterfrom
fgiudici:OPRUN-4519-upgrade-edges-tests

Conversation

@fgiudici
Copy link
Member

OCP 4.23 and 5.0 represent the same release.
Add normalizeOCPVersion() to map 4.23 to 5.0 before computing the next Y-stream and comparing an operator's declared max version, so both cluster and operator versions are evaluated consistently.

Add test coverage for 4.23/5.0 upgrades.

Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
Signed-off-by: Francesco Giudici fgiudici@redhat.com

Description of the change:

Motivation for the change:

Architectural changes:

Testing remarks:

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Bug fixes are accompanied by regression test(s)
  • e2e tests and flake fixes are accompanied evidence of flake testing, e.g. executing the test 100(0) times
  • tech debt/todo is accompanied by issue link(s) in comments in the surrounding code
  • Tests are comprehensible, e.g. Ginkgo DSL is being used appropriately
  • Docs updated or added to /doc
  • Commit messages sensible and descriptive
  • Tests marked as [FLAKE] are truly flaky and have an issue
  • Code is properly formatted

OPRUN-4519

fgiudici and others added 2 commits March 26, 2026 19:43
OCP 4.23 and 5.0 represent the same release. Add normalizeOCPVersion() to
map 4.23 to 5.0 before computing the next Y-stream and comparing an
operator's declared max version, so both cluster and operator versions
are evaluated consistently.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
Cover cluster versions 4.22, 4.23, 5.0, and 5.1 against operators
declaring maxOpenShiftVersion 4.23, 5.0, and 5.1. Add
TestNormalizeOCPVersion for the new helper.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
@openshift-ci openshift-ci bot requested review from dtfranz and grokspawn March 26, 2026 18:54
@openshift-ci
Copy link

openshift-ci bot commented Mar 26, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dtfranz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant