Description of problem:
oc-mirror v2 is not mirroring the dependent operator automatically like v1 until it specifically mentioned in the imageset
Version-Release number of selected component (if applicable):
oc-mirror v2
How reproducible:
100% reproducible
Steps to Reproduce:
1- Create an imageset to mirror odf-operator as its having multiple dependent operators, see the doc[a] for dependent operator lists
kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16 packages: - name: odf-operator
2- create mapping.txt and see its only mirroring the odf-operator image
# oc-mirror --config odf-imageset.yaml file://test --dry-run --v2
3- Mirror the same operator with v1 and see the mapping.txt. all the dependent operators will be mirrored
kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 storageConfig: local: path: /opt/ocp_mirror/odf mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16 packages: - name: odf-operator # oc-mirror --config=./odf-imageset.yaml docker://<registry>:8443 --dry-run
Actual results:
Dependent operators are not getting mirrored like v1
Expected results:
Dependent operators are also should be mirrored like v1
Additional info:
- is related to
-
RFE-7225 oc-mirror v2 should mirror dependent operator as well.
-
- Approved
-