How to split ImageSetConfiguration and upload images using the oc-mirror plugin
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.tarand 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-pruningby using the following ImageSetConfiguration to generatemirror_seq2_000000.tarand 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.