CFE Sprint 233, CFE Sprint 234, CFE Sprint 235
This fix addresses the minVersion (in the ImageSetConfig) that is not filtered properly, i.e it filters on minVersion lower than that set in the ImageSetConfig field.
The fix ensures that the minVersion is respected and that only versions equal or greater than the set minVersion are included
Description of problem:
Older images are pulled even when using minVersion in ImageSetConfiguration.
Version-Release number of selected component (if applicable):
oc mirror version
Client Version: version.Info
Steps to Reproduce:
1. get attached ImageSetConfiguration
2. run 'oc mirror --config=./image-set.yaml docker://<yourRegistry> --continue-on-error'
Output contains a lot of 'unable to retrieve source image' errors for images which are older than defined in minVersion (those images are known to be missing, a goal was to use minVersion to filter out those older images to get rid of those errors but it's not working)
Those older images should not be included
image-set.yaml is attached
Full output of 'oc mirror' attached
There are more images failing but as an example:
This image is from version 1.0.11 but minVersion: '2.2.1-0' so it should not be included.
Here is how I checked that image: