Skip to content

Commit ed7c238

Browse files
authored
Merge pull request #61978 from adellape/repo_conflict
2 parents a2fcd05 + 73431ee commit ed7c238

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

installing/disconnected_install/installing-mirroring-installation-images.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $ podman login registry.redhat.io
104104
endif::[]
105105
* Access to a mirror registry that supports
106106
link:https://docs.docker.com/registry/spec/manifest-v2-2/[Docker v2-2].
107-
* On your mirror registry, decide which namespace to use for storing mirrored Operator content. For example, you might create an `olm-mirror` namespace.
107+
* On your mirror registry, decide which repository, or namespace, to use for storing mirrored Operator content. For example, you might create an `olm-mirror` repository.
108108
* If your mirror registry does not have internet access, connect removable media to your workstation with unrestricted network access.
109109
* If you are working with private registries, including `registry.redhat.io`, set the `REG_CREDS` environment variable to the file path of your registry credentials for use in later steps. For example, for the `podman` CLI:
110110
+

modules/olm-mirroring-catalog-airgapped.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ $ podman login <mirror_registry>
6666
[source,terminal]
6767
----
6868
$ oc adm catalog mirror \
69-
file://local/index/<repo>/<index_image>:<tag> \ <1>
70-
<mirror_registry>:<port>/<namespace> \ <2>
69+
file://local/index/<repository>/<index_image>:<tag> \ <1>
70+
<mirror_registry>:<port>[/<repository>] \ <2>
7171
-a ${REG_CREDS} \ <3>
7272
--insecure \ <4>
7373
--index-filter-by-os='<platform>/<arch>' <5>
7474
----
7575
<1> Specify the `file://` path from the previous command output.
76-
<2> Specify the fully qualified domain name (FQDN) for the target registry and namespace to mirror the Operator contents to, where `<namespace>` is any existing namespace on the registry. For example, you might create an `olm-mirror` namespace to push all mirrored content to.
76+
<2> Specify the fully qualified domain name (FQDN) for the target registry to mirror the Operator contents to. The mirror registry `<repository>` can be any existing repository, or namespace, on the registry, for example `olm-mirror` as outlined in the prerequisites. If there is an existing repository found during mirroring, the repository name is added to the resulting image name. If you do not want the image name to include the repository name, omit the `<repository>` value from this line, for example `<mirror_registry>:<port>`.
7777
<3> Optional: If required, specify the location of your registry credentials file.
7878
<4> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.
7979
<5> Optional: Specify which platform and architecture of the index image to select when multiple variants are available. Images are specified as `'<platform>/<arch>[/<variant>]'`. This does not apply to images referenced by the index. Valid values are `linux/amd64`, `linux/ppc64le`, `linux/s390x`, `linux/arm64`, and `.*`
@@ -83,13 +83,13 @@ $ oc adm catalog mirror \
8383
Red Hat Quay does not support nested repositories. As a result, running the `oc adm catalog mirror` command will fail with a `401` unauthorized error. As a workaround, you can use the `--max-components=2` option when running the `oc adm catalog mirror` command to disable the creation of nested repositories. For more information on this workaround, see the link:https://access.redhat.com/solutions/5440741[Unauthorized error thrown while using catalog mirror command with Quay registry] Knowledgebase Solution.
8484
====
8585
86-
. Run the `oc adm catalog mirror` command again. Use the newly mirrored index image as the source and the same mirror registry namespace used in the previous step as the target:
86+
. Run the `oc adm catalog mirror` command again. Use the newly mirrored index image as the source and the same mirror registry target used in the previous step:
8787
+
8888
[source,terminal]
8989
----
9090
$ oc adm catalog mirror \
9191
<mirror_registry>:<port>/<index_image> \
92-
<mirror_registry>:<port>/<namespace> \
92+
<mirror_registry>:<port>[/<repository>] \
9393
--manifests-only \//<1>
9494
[-a ${REG_CREDS}] \
9595
[--insecure]

modules/olm-mirroring-catalog-colocated.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ $ podman login <mirror_registry>
3232
----
3333
$ oc adm catalog mirror \
3434
<index_image> \ <1>
35-
<mirror_registry>:<port>/<namespace> \ <2>
35+
<mirror_registry>:<port>[/<repository>] \ <2>
3636
[-a ${REG_CREDS}] \ <3>
3737
[--insecure] \ <4>
3838
[--index-filter-by-os='<platform>/<arch>'] \ <5>
3939
[--manifests-only] <6>
4040
----
4141
<1> Specify the index image for the catalog that you want to mirror.
42-
<2> Specify the fully qualified domain name (FQDN) for the target registry and namespace to mirror the Operator contents to, where `<namespace>` is any existing namespace on the registry. For example, you might create an `olm-mirror` namespace to push all mirrored content to.
42+
<2> Specify the fully qualified domain name (FQDN) for the target registry to mirror the Operator contents to. The mirror registry `<repository>` can be any existing repository, or namespace, on the registry, for example `olm-mirror` as outlined in the prerequisites. If there is an existing repository found during mirroring, the repository name is added to the resulting image name. If you do not want the image name to include the repository name, omit the `<repository>` value from this line, for example `<mirror_registry>:<port>`.
4343
<3> Optional: If required, specify the location of your registry credentials file.
4444
`{REG_CREDS}` is required for `registry.redhat.io`.
4545
<4> Optional: If you do not want to configure trust for the target registry, add the `--insecure` flag.

modules/olm-mirroring-catalog-manifests.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you mirrored content to a registry on a disconnected host in the previous sec
1818

1919
[source,text]
2020
----
21-
manifests-index/<namespace>/<index_image_name>-<random_number>
21+
manifests-index/<repository>/<index_image_name>-<random_number>
2222
----
2323

2424
[NOTE]

0 commit comments

Comments
 (0)