-
Bug
-
Resolution: Done
-
Major
-
None
-
4.10
-
Quality / Stability / Reliability
-
None
-
None
-
None
-
Important
-
None
-
Unspecified
-
None
-
None
-
Rejected
-
None
-
None
-
If docs needed, set a value
-
None
-
None
-
None
-
None
-
None
Description of problem:
Filter the catalog with special package does not work
Version-Release number of selected component (if applicable):
[root@localhost ocpupdate]# oc-mirror version
v0.1.0-alpha.3
How reproducible:
always
Steps to Reproduce:
1. With the imageset to filter catalog with special package :
[root@localhost operator]# cat imageset.yaml
apiVersion: tmp-redhatgov.com/v1alpha1
kind: ImageSetConfiguration
storageConfig:
local:
path: /home/ocmirrortest/oprator
mirror:
ocp:
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.8
packages: - name: cluster-kube-descheduler-operator
startingVersion: '4.8.0-202111041632'
2. Run the command to mirror the package to localhost:
`oc-mirror --config imageset.yaml file://out`
3. Check the output of the package;
Actual results:
3. The special package will occupy more than 140GB, Seems not only mirror the package but all the catalog.
[root@localhost operator]# du --max-depth=1 -h
162G ./out
162G .
[root@localhost operator]# ls -lh out
total 147G
rw-rw-r-. 1 root root 147G Dec 20 11:09 mirror_seq1_000000.tar
drwxrwxr-x. 3 root root 4.0K Dec 20 10:15 oc-mirror-workspace
Expected results:
3. only mirror the specify package .
Additional info: