@@ -56,20 +56,27 @@ link:https://quay.io/[quay.io], tagging and pushing it to your mirror registry:
5656----
5757$ oc adm catalog build \
5858 --appregistry-org redhat-operators \//<1>
59- --from=registry.redhat.io/openshift4/ose-operator-registry:v4.3 \//<2>
60- --to=<registry_host_name>:<port>/olm/redhat-operators:v2 \//<3>
61- [-a ${REG_CREDS}] \//<4>
62- [--insecure] <5>
59+ --from=registry.redhat.io/openshift4/ose-operator-registry:v4.4 \//<2>
60+ --filter-by-os="linux/amd64" \//<3>
61+ --to=<registry_host_name>:<port>/olm/redhat-operators:v2 \//<4>
62+ [-a ${REG_CREDS}] \//<5>
63+ [--insecure] <6>
6364
6465INFO[0013] loading Bundles dir=/var/folders/st/9cskxqs53ll3wdn434vw4cd80000gn/T/300666084/manifests-829192605
6566...
6667Pushed sha256:f73d42950021f9240389f99ddc5b0c7f1b533c054ba344654ff1edaf6bf827e3 to example_registry:5000/olm/redhat-operators:v2
6768----
6869<1> Organization (namespace) to pull from an App Registry instance.
69- <2> Set `--from` to the `ose-operator-registry` base image using the tag that matches the target {product-title} cluster major and minor version.
70- <3> Name your catalog image and include a tag, for example, `v2` because it is the updated catalog.
71- <4> Optional: If required, specify the location of your registry credentials file.
72- <5> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.
70+ <2> Set `--from` to the `ose-operator-registry` base image using the tag that
71+ matches the target {product-title} cluster major and minor version.
72+ <3> Set `--filter-by-os` to the operating system and architecture to use for the
73+ base image, which must match the target {product-title} cluster. Valid values
74+ are `linux/amd64`, `linux/ppc64le`, and `linux/s390x`.
75+ <4> Name your catalog image and include a tag, for example, `v2` because it is the
76+ updated catalog.
77+ <5> Optional: If required, specify the location of your registry credentials file.
78+ <6> Optional: If you do not want to configure trust for the target registry, add the
79+ `--insecure` flag.
7380
7481. Mirror the contents of your catalog to your target registry. The following
7582`oc adm catalog mirror` command extracts the contents of your custom Operator
@@ -81,13 +88,20 @@ $ oc adm catalog mirror \
8188 <registry_host_name>:<port>/olm/redhat-operators:v2 \//<1>
8289 <registry_host_name>:<port> \
8390 [-a ${REG_CREDS}] \//<2>
84- [--insecure] <3>
91+ [--insecure] \//<3>
92+ [--filter-by-os="<os>/<arch>"] <4>
8593
8694mirroring ...
8795----
8896<1> Specify your new Operator catalog image.
89- <2> Optional: If required, specify the location of your registry credentials file.
90- <3> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.
97+ <2> Optional: If required, specify the location of your registry credentials
98+ file.
99+ <3> Optional: If you do not want to configure trust for the target registry, add
100+ the `--insecure` flag.
101+ <4> Optional: Because the catalog might reference images that support multiple
102+ architectures and operating systems, you can filter by architecture and
103+ operating system to mirror only the images that match. Valid values are
104+ `linux/amd64`, `linux/ppc64le`, and `linux/s390x`.
91105
92106. Apply the newly generated manifests:
93107+
0 commit comments