AGENT-1426: Add localhost mirror only when missing in IRI patcher#10028
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdded helper functions to detect whether an ImageMirror already targets localhost, and updated PatchManifests for both IDMS and ITMS to conditionally append localhost mirror entries only when not already present, while always appending api-int-patched entries. Comprehensive test coverage was added. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
|
Skipping CI for Draft Pull Request. |
|
@danielerez: This pull request references AGENT-1426 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test ? |
|
/test e2e-agent-compact-ipv4-iso-no-registry |
When patching ImageDigestMirrorSet and ImageTagMirrorSet for InternalReleaseImage, append the localhost mirror only if the mirror set does not already contain a localhost entry (to avoid duplication). This is required for: openshift/appliance#645 I.e. The appliance should use 'localhost', thus, already adding it to mirrors.
ac94194 to
a98d019
Compare
|
/cc @andfasano |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10028 +/- ##
==========================================
+ Coverage 44.09% 45.49% +1.40%
==========================================
Files 415 415
Lines 72258 74599 +2341
==========================================
+ Hits 31860 33939 +2079
- Misses 37518 37756 +238
- Partials 2880 2904 +24
🚀 New features to boost your workflow:
|
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielerez, omer-vishlitzky The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/override ci/prow/edge-e2e-ai-operator-ztp |
|
@danielerez: Overrode contexts on behalf of danielerez: ci/prow/edge-e2e-ai-operator-ztp DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/override ci/prow/e2e-agent-compact-ipv4-iso-no-registry |
|
@danielerez: Overrode contexts on behalf of danielerez: ci/prow/e2e-agent-compact-ipv4-iso-no-registry DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
6989bc2
into
openshift:master
|
@danielerez: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
When patching ImageDigestMirrorSet and ImageTagMirrorSet for InternalReleaseImage, append the localhost mirror only if the mirror set does not already contain a localhost entry (to avoid duplication).
This is required for: openshift/appliance#645 I.e. The appliance should use 'localhost', thus, already adding it to mirrors.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs, README, etc)Reviewers Checklist