Skip to content

Commit 4a29d0b

Browse files
authored
Merge pull request #68593 from skopacz1/OCPBUGS-21939
OCPBUGS#21939: fixing to-image update command in disconnected doc
2 parents 574ae11 + 2e952d1 commit 4a29d0b

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

modules/update-restricted.adoc

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,25 @@ The release image signature config map allows the Cluster Version Operator (CVO)
3434
+
3535
[source,terminal]
3636
----
37-
$ oc adm upgrade --allow-explicit-upgrade --to-image ${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}@<digest> <1>
37+
$ oc adm upgrade --allow-explicit-upgrade --to-image <defined_registry>/<defined_repository>@<digest>
3838
----
39-
<1> The `<digest>` value is the sha256 digest for the targeted release image, for example, `sha256:81154f5c03294534e1eaf0319bef7a601134f891689ccede5d705ef659aa8c92`
4039
+
41-
If you use an `ImageContentSourcePolicy` for the mirror registry, you can use the canonical registry name instead of `LOCAL_REGISTRY`.
40+
--
41+
Where:
42+
43+
`<defined_registry>`:: Specifies the name of the mirror registry you mirrored your images to.
44+
45+
`<defined_repository>`:: Specifies the name of the image repository you want to use on the mirror registry.
46+
47+
`<digest>`:: Specifies the sha256 digest for the targeted release image, for example, `sha256:81154f5c03294534e1eaf0319bef7a601134f891689ccede5d705ef659aa8c92`.
48+
--
4249
+
4350
[NOTE]
4451
====
45-
You can only configure global pull secrets for clusters that have an `ImageContentSourcePolicy` object. You cannot add a pull secret to a project.
52+
* See "Mirroring {product-title} images" to review how your mirror registry and repository names are defined.
53+
54+
* If you used an `ImageContentSourcePolicy` or `ImageDigestMirrorSet`, you can use the canonical registry and repository names instead of the names you defined.
55+
The canonical registry name is `quay.io` and the canonical repository name is `openshift-release-dev/ocp-release`.
56+
57+
* You can only configure global pull secrets for clusters that have an `ImageContentSourcePolicy` object. You cannot add a pull secret to a project.
4658
====

updating/updating_a_cluster/updating_disconnected_cluster/disconnected-update.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ include::modules/update-restricted-image-digests.adoc[leveloffset=+1]
4545
// Updating the disconnected cluster
4646
include::modules/update-restricted.adoc[leveloffset=+1]
4747

48+
[role="_additional-resources"]
49+
.Additional resources
50+
51+
* xref:../../../updating/updating_a_cluster/updating_disconnected_cluster/mirroring-image-repository.adoc#mirroring-ocp-image-repository[Mirroring {product-title} images]
52+
4853
// Configuring image registry repository mirroring
4954
include::modules/images-configuration-registry-mirror.adoc[leveloffset=+1]
5055

0 commit comments

Comments
 (0)