Bug #34398
closedexclude source redhat containers by default
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1845471
Description of problem:
Once source container are enabled, they will be included as regular types of the images in the repositories.
Source container images are quite big, they cannot be pulled( podman docker pull will fail) and run.
Only with skopeo copy command those containers can be installed.
Katello's Registry won't have an issue to mirror down such content, however the sync time might be much longer due to the fact that source container images are quite large. This might decrease customer experience.
Solution: add an option to opt out of mirroring source container images.
Every source container will be tagged with the following convention:
Source container images are named based on the binary containers they represent. For example, for a particular standard RHEL UBI 8 container registry.access.redhat.com/ubi8:8.1-397 append -source to get the source container image (registry.access.redhat.com/ubi8:8.1-397-source).
We already have a whitelist option, adjust the code so it can handle regular expressions and a negation of the search pattern can be used.
Version-Release number of selected component (if applicable):
All versions