Uploaded image for project: 'OpenShift Cloud'
  1. OpenShift Cloud
  2. OCPCLOUD-3373

Support wildcard mirrors for disconnected image fetching

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None

      For the current implementation, Wildcard IDMS sources (e.g. *.redhat.io) are not supported. We do want to support this, the docs mention it's possible: `mirrors is zero or more locations that may also contain the same images. No mirror will be configured if not specified. Images can be pulled from these mirrors only if they are referenced by their digests. The mirrored location is obtained by replacing the part of the input reference that matches source by the mirrors entry, e.g. for registry.redhat.io/product/repo reference, a (source, mirror) pair *.redhat.io, mirror.local/redhat causes a mirror.local/redhat/product/repo repository to be used.`

       

       

      By default oc adm mirror and oc-mirror don't use wildcards
      (https://github.com/openshift/oc/blob/main/pkg/cli/admin/catalog/mirror.gohttps://github.com/openshift/oc-mirror/blob/main/internal/pkg/clusterresources/clusterresources.go), but we need to support this as we will break somebody who does. 

       

      This should be an additive change on top of https://github.com/openshift/cluster-capi-operator/pull/463, we just need to branch to different logic if we detect a wildcard. 

       

      Must be done pre GA.

              rh-ee-tbarberb Theo Barber-Bany
              rh-ee-tbarberb Theo Barber-Bany
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: