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
OCPBUGS-21865: Honor IncludeChannel.MaxVersion when mirroring differe… #761
Conversation
@sherine-k: This pull request references Jira Issue OCPBUGS-21865, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In 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/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sherine-k 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 |
/lgtm |
@sherine-k: all tests passed! Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
@sherine-k: Jira Issue OCPBUGS-21865: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-21865 has been moved to the MODIFIED state. In 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/test-infra repository. |
[ART PR BUILD NOTIFIER] This PR has been included in build oc-mirror-plugin-container-v4.16.0-202312150911.p0.g83acc2a.assembly.stream for distgit oc-mirror-plugin. |
…ntially
Description
When a previous mirroring had occurred, and the operator mirroring is bound by both minVersion and maxVersion in the imageSetConfig, oc-mirror was ignoring the MaxVersion, and mirroring all bundles up to the channel head.
Fixes OCPBUGS-21865
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Specific unit tests covering the case described by the bug reporter have been added.
Furthermore, we used the following use case to validate the change:
isc_21865_1.yaml
isc_21865_2.yaml
Expected Outcome
Inspecting the mapping.txt file generated before and after the change with
grep "\-bundle" /home/skhoury/test1/oc-mirror-workspace/mapping.txt registry.redhat.io/openshift4/ose-local-storage-operator-bundle@sha256:b0f47e35fbd4e8d0053a28a79d8d59d92458d14f31e9d7a1ffbd71416da7a660=file://openshift4/ose-local-storage-operator-bundle:6d4aacc3 registry.redhat.io/rh-sso-7/sso7-rhel8-operator-bundle@sha256:0678aad21b12b433e29d8a7e6280e7b2ea2c0251a3e27a60d32ba6c877a7051d=file://rh-sso-7/sso7-rhel8-operator-bundle:372777e8 registry.redhat.io/odf4/odf-operator-bundle@sha256:5ccc9c304ce9aa903bafcbfc6013f6608eb1311724a89da4fb9b674d713c4c6c=file://odf4/odf-operator-bundle:7abe234f
You should notice that after the patch there is only 1 bundle image for the 3 operators that are included in the mirroring, while several bundle images exist for the same operator without the patch.