Can't sync discovered containers without slash in name from Docker.io registry
When using repo discovery to pull containers from Docker.io registry, containers from main namespace (without slash in name) will fail to sync afterwards.
The problem is that while repo discovery works against `index.docker.io`, containers must be properly namespaced to be pulled from it. So instead of `alpine`, `library/alpine` must be pulled.
It seems that `library` is implicit when pulling images from `registry-1.docker.io`, so just `alpine` will work; but repo discovery doesn't work against that host, which means manual creation of repositories.
While this might be problem on Docker.io side, they are the biggest provider of images out there, so we might want to adjust to them nevertheless.
Steps to Reproduce:
1. Content -> Products -> Repo discovery -> Type: Container images
2. Registry: index.docker.io -> Registry Search Parameter: alpine
3. Select `alpine` and `alpine/git` -> Create Selected -> Run repository creation
4. Navigate to product page, sync both repositories
Syncing `alpine` repository fails; syncing `alpine/git` succeeds.
To make alpine sync, go to details page and do either of following:
- change Registry URL to `https://registry-1.docker.io/`
- change Upstream Repository Name to `library/alpine`
Syncing both succeeds.
This commit tweaks the existing docker repo discovery workflow by
allowing the user to search from one of
1) Docker Hub
2) RH Registry
4) Custom - Private Registries
search in index.docker.io while create the repo using
Basic issue that this commit resolves is that "docker search foo"
searches for foo in index.docker.io, but "docker pull foo" pulls it from
registry-1.docker.io. This causes issues when creating repos from
Discovery. This commit tries handle that situation with a better
Refs #25972 - default value and class for Registry to Discover
c490d55ed1012aac08e10dacc4e581d19125fbea introduced new <select>
'Registry to Discover'. There are two issues with it:
1. It uses default browser styling, making it stand out from other
elements on form.
2. It has no default value set. Empty string is used automatically
instead. As result, when user clicks it for the first time, there are 5
items available. After picking one, all subsequent click will display
only 4 items.
This commit fixes both of these issues.
Refs #25972 - use registry.redhat.io
Red Hat maintains three container registries:
registry.access.redhat.com, registry.redhat.io and
registry.connect.redhat.com. The plan is to eventually decommission
Use registry.redhat.io as default. registry.access.redhat.com can still
be used by selecting Custom and providing url manually.