How to split ImageSetConfiguration and upload images using the oc-mirror plugin

Solution Verified - Updated -

Issue

  • Due to this KCS issue, I need to split ImageSetConfiguration and upload images gradually because my environment has a slow network
  • To begin, I have executed oc-mirror by using the following ImageSetConfiguration to generate mirror_seq1_000000.tar and uploaded the first Operator(s):
apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
mirror:
  operators:
  - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
    packages:
    - name: cluster-logging
  • Then I have executed oc-mirror with --skip-pruning by using the following ImageSetConfiguration to generate mirror_seq2_000000.tar and uploaded the second Operator(s):
apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
mirror:
  operators:
  - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
    packages:
    - name: loki-operator
  • Now, I notice that only the second operator is listed in the OperatorHub on the web console. The custom catalog image does not include the bundle for the first operator.

Environment

  • OpenShift Container Platform
    • 4
  • Disconnected environment
  • oc-mirror plugin

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content