1, Install the `oc` client that contains the fixed PR, as follows:
[jzhang@dhcp-140-36 4.3]$ ./oc version -o yaml
2, Run the `--help` option, check the output:
[jzhang@dhcp-140-36 4.3]$ ./oc adm catalog build --help
Builds a catalog container image from a collection operator manifests.
Extracts the contents of a collection of operator manifests to disk, and builds them into an operator registry catalog
oc adm catalog build [flags]
# Build an operator catalog from an appregistry repo and store in a file
oc adm catalog mirror --appregistry-org=redhat-operators --to=file://offline/redhat-operators:4.3
# Build an operator catalog from an appregistry repo and mirror to a registry
oc adm catalog mirror --appregistry-org=redhat-operators --to=quay.io/my/redhat-operators:4.3
--appregistry-endpoint='https://quay.io/cnr': Endpoint for pulling from an application registry instance.
--appregistry-org='': Organization (Namespace) to pull from an application registry instance
--auth-token='': Auth token for communicating with an application registry.
--dir='': The directory on disk that file:// images will be copied under.
--filter-by-os='': A regular expression to control which images are considered when multiple variants are
available. Images will be passed as '<platform>/<architecture>[/<variant>]'.
--from='quay.io/openshift/origin-operator-registry:latest': The image to use as a base.
--from-dir='': The directory on disk that file:// images will be read from. Overrides --dir
--insecure=false: Allow push and pull operations to registries to be made over HTTP
--manifest-dir='': Local path to cache manifests when downloading.
--max-per-registry=4: Number of concurrent requests allowed per registry.
-a, --registry-config='': Path to your registry credentials (defaults to ~/.docker/config.json)
--skip-verification=false: Skip verifying the integrity of the retrieved content. This is not recommended, but may
be necessary when importing images from older image registries. Only bypass verification if the registry is known to be
--to='': The image repository tag to apply to the built catalog image.
--to-db='': Local path to save the database to.
Use "oc adm options" for a list of global command-line options (applies to all commands).
As we can see above, the based image is "quay.io/openshift/origin-operator-registry:latest" now, and it works well based on https://bugzilla.redhat.com/show_bug.cgi?id=1808078#c3. LGTM, verify it.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.