-
Notifications
You must be signed in to change notification settings - Fork 203
RHOAIENG-38505 | build: update image placeholder strategy #2842
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
RHOAIENG-38505 | build: update image placeholder strategy #2842
Conversation
Jira: [RHOAIENG-38505](https://issues.redhat.com/browse/RHOAIENG-38505) Change the kustomize image reference from a hardcoded "controller" name to a "REPLACE_IMAGE" placeholder. The previous strategy didn't work properly for CI, because the [substitution logic](https://github.com/openshift/ci-tools/blob/2401b722f08b32d2a6926e1d918ef010ef37992c/pkg/steps/bundle_source.go#L90) modifies YAML files in the repo.
WalkthroughThe pull request consolidates image replacement logic by transitioning from a transformation-based approach using the "controller" key to direct "REPLACE_IMAGE" substitution across the Makefile, kustomization configuration, and manager deployment manifest. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2842 +/- ##
=======================================
Coverage 50.07% 50.07%
=======================================
Files 144 144
Lines 10469 10469
=======================================
Hits 5242 5242
Misses 4669 4669
Partials 558 558 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidebianchi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
zdtsw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e364762
into
opendatahub-io:main
Description
Jira: RHOAIENG-38505
Change the kustomize image reference from a hardcoded "controller" name to a "REPLACE_IMAGE" placeholder.
The previous strategy didn't work properly for CI, because the substitution logic modifies YAML files in the repo.
How Has This Been Tested?
make bundle-buildlocally, verified bundle contents haveimage:set according to myIMG/IMAGE_BASE_TAG, etc settings.Screenshot or short clip
Merge criteria
E2E test suite update requirement
When bringing new changes to the operator code, such changes are by default required to be accompanied by extending and/or updating the E2E test suite accordingly.
To opt-out of this requirement:
E2E update requirement opt-out justificationsection belowE2E update requirement opt-out justification
build change
Summary by CodeRabbit