Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-37227

oc-mirror tool ignores minVersion and maxVersion for ansible-automation-platform-operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.15.0
    • oc-mirror
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Configuring an ImageSet like below, however the minVersion and maxVersion fields appear to be ignored and all versions are mirrored
      
          

      Version-Release number of selected component (if applicable):

           4.15.0-202406132106.p0.ge91f573.assembly.stream.el9-e91f573
      
          

      How reproducible:

         everytime
      
          

      Steps to Reproduce:

          1. Attempt to mirror with the following ImageSet
          --- 
          apiVersion: mirror.openshift.io/v1alpha2
          kind: ImageSetConfiguration
          mirror:
            operators:
            - catalog: "registry.redhat.io/redhat/redhat-operator-index:v4.12"
              targetCatalog: "redhat/redhat-operator-index"
              packages:
                - name: "openshift-gitops-operator"
                  channels:
                    - name: "gitops-1.7"
                      minVersion: "1.7.4+0.1690486082.p"
                      maxVersion: "1.7.4+0.1690486082.p"
                - name: "ansible-automation-platform-operator"
                  channels:
                    - name: "stable-2.3"
                      minVersion: "2.3.0+0.1707930478"
                      maxVersion: "2.3.0+0.1707930478"
          storageConfig:
          registry:
            imageURL: quay.io/mwasher/ocp-release
          ~~~
      
      
          2. List the mirrored images
      
          

      Actual results:

          All images appear to be mirrored
      
          

      Expected results:

            images are limited to those within the minVersion and maxVersion fields
          

      Additional info:

      
          

              luzuccar@redhat.com Luigi Mario Zuccarelli
              rhn-support-mwasher Michael Washer (Inactive)
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: