-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
False
-
-
-
-
1. Proposed title of this feature request
Feature-Request - Provide method to filter Images based on labels or similar when running oc import-image
2. What is the nature and description of the request?
oc import-image is currently able to import a specific tag for a Container Image or to Import all tags available for the specific Container Image. Sometimes a Container Image consists of many tag and thus importing all tag using --all option is not suitable. Instead it would be more handy to have a way and filter tag based on specific naming patterns or even on labels applied on the Container Image. That way, one would have more flexibility when important Container Images and not be restricted to either one tag or all of them.
3. Why does the customer need this? (List the business requirements here)
Certain Container Images have many tag and it may not be desired to only import one or all. But instead one might want to have all that have a specific name (such as openjdk-11:1 to openjdk-11:12 but leave all the others such as openjdk-11:1-source or even openjdk-11:15). While it's possible to manually import one tag after the other, it's not really practical to-do this with a Container Image that has many tag and therefore some filtering based on tag or label would be helpful to simplify that task
4. List any affected packages or components.
oc import-image