Skip to content

feat: parameterise hardcoded OCP version in EE build configuration#13

Closed
shebistar wants to merge 1 commit into
mainfrom
feat/parameterise-ocp-version
Closed

feat: parameterise hardcoded OCP version in EE build configuration#13
shebistar wants to merge 1 commit into
mainfrom
feat/parameterise-ocp-version

Conversation

@shebistar

Copy link
Copy Markdown
Contributor

Summary

Replaces the hardcoded rhocp-4.21 repo name across all 3 EE versions with an OCP_VERSION build-arg (default 4.21), and exposes it in CI.

Problem

6 hardcoded occurrences across 3 files required manual editing whenever OCP version changes. This introduces drift risk.

Changes

  • ee-2.4/execution-environment.yml, ee-2.5/execution-environment.yml, ee-2.6/execution-environment.yml: added ARG OCP_VERSION=4.21 in prepend_builder and prepend_final
  • .github/workflows/build-ee.yml: added OCP_VERSION=4.21 to build-args

Test plan

  • EE builds succeed with parameterised OCP_VERSION
  • Overriding OCP_VERSION in a manual workflow run works

Closes #9

Made with Cursor

Replace hardcoded rhocp-4.21 repo name with an OCP_VERSION build-arg
(defaulting to 4.21) across all three EE versions. This eliminates the
need to edit 6 locations across 3 files when updating the OCP dependency.

Changes:
- All EE versions: added ARG OCP_VERSION=4.21 to prepend_builder and
  prepend_final steps, replacing literal rhocp-4.21 in PKGMGR_OPTS
- build-ee.yml: pass OCP_VERSION=4.21 as an explicit build-arg so the
  value is visible and overridable from CI

Closes #9

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shebistar shebistar closed this Jun 25, 2026
@shebistar shebistar reopened this Jun 25, 2026
@shebistar shebistar closed this Jun 25, 2026
@shebistar shebistar deleted the feat/parameterise-ocp-version branch June 25, 2026 11:53
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.

feat: parameterise hardcoded rhocp-4.21 repo name across all EE versions

2 participants