Skip to content

Commit ac2218c

Browse files
authored
Merge pull request #28184 from adellape/filterbyos_2
Update --filter-by-os usage for Package Manifest Format
2 parents f9089cb + dab0ced commit ac2218c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/olm-mirroring-package-manifest-catalog.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ $ oc adm catalog mirror \
3939
<registry_host_name>:<port> \
4040
[-a ${REG_CREDS}] \//<2>
4141
[--insecure] \//<3>
42-
[--filter-by-os="<os>/<arch>"] \//<4>
42+
--filter-by-os='.*' \//<4>
4343
[--manifests-only] <5>
4444
----
4545
<1> Specify your Operator catalog image.
4646
<2> Optional: If required, specify the location of your registry credentials file.
4747
<3> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.
48-
<4> Optional: Because the catalog might reference images that support multiple architectures and operating systems, you can filter by architecture and operating system to mirror only the images that match. Valid values are `linux/amd64`, `linux/ppc64le`, and `linux/s390x`.
48+
<4> This flag is currently required due to a known issue with multiple architecture support. If unset or set to any value other than `.*`, filtering out different architectures changes the digest of the manifest list, also known as a "multi-arch image", which causes deployments of those images and Operators on disconnected clusters to fail. For more information, see link:https://bugzilla.redhat.com/show_bug.cgi?id=1890951[BZ#1890951].
4949
<5> Optional: Only generate the manifests required for mirroring and do not actually mirror the image content to a registry.
5050
+
5151
.Example output

modules/olm-updating-operator-catalog-image.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ $ oc adm catalog mirror \
9797
<registry_host_name>:<port> \
9898
[-a ${REG_CREDS}] \//<2>
9999
[--insecure] \//<3>
100-
[--filter-by-os="<os>/<arch>"] <4>
100+
--filter-by-os='.*' <4>
101101
----
102102
<1> Specify your new Operator catalog image.
103103
<2> Optional: If required, specify the location of your registry credentials file.
104104
<3> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.
105-
<4> Optional: Because the catalog might reference images that support multiple architectures and operating systems, you can filter by architecture and operating system to mirror only the images that match. Valid values are `linux/amd64`, `linux/ppc64le`, and `linux/s390x`.
105+
<4> This flag is currently required due to a known issue with multiple architecture support. If unset or set to any value other than `.*`, filtering out different architectures changes the digest of the manifest list, also known as a "multi-arch image", which causes deployments of those images and Operators on disconnected clusters to fail. For more information, see link:https://bugzilla.redhat.com/show_bug.cgi?id=1890951[BZ#1890951].
106106

107107
. Apply the newly generated manifests:
108108
+

0 commit comments

Comments
 (0)