Skip to content

Commit 7dc029c

Browse files
authored
Merge pull request #58953 from skopacz1/OSDOCS-5737
OSDOCS-5737: oc-mirror applying release signatures
2 parents 54bc7cd + b0fdbe7 commit 7dc029c

File tree

7 files changed

+23
-18
lines changed

7 files changed

+23
-18
lines changed

installing/disconnected_install/installing-mirroring-disconnected.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following steps outline the high-level workflow on how to use the oc-mirror
1616
. Mirror the image set to the mirror registry by using one of the following methods:
1717
** Mirror an image set directly to the mirror registry.
1818
** Mirror an image set to disk, transfer the image set to the target environment, then upload the image set to the target mirror registry.
19-
. Install the `ImageContentSourcePolicy` and `CatalogSource` resources that were generated by oc-mirror into the cluster.
19+
. Configure your cluster to use the resources generated by the oc-mirror plugin.
2020
. Repeat these steps to update your mirror registry as necessary.
2121

2222
// About the oc-mirror plugin
@@ -97,7 +97,7 @@ include::modules/oc-mirror-mirror-to-disk.adoc[leveloffset=+3]
9797
// Mirroring from disk to mirror in a disconnected environment
9898
include::modules/oc-mirror-disk-to-mirror.adoc[leveloffset=+3]
9999

100-
// Installing the ImageContentSourcePolicy and CatalogSource resources into the cluster
100+
// Configuring your cluster to use the resources generated by oc-mirror
101101
include::modules/oc-mirror-updating-cluster-manifests.adoc[leveloffset=+1]
102102

103103
[id="updating-mirror-registry-content"]
@@ -119,7 +119,7 @@ include::modules/oc-mirror-differential-updates.adoc[leveloffset=+2]
119119
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#oc-mirror-image-set-examples_installing-mirroring-disconnected[Image set configuration examples]
120120
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#mirroring-image-set-partial[Mirroring an image set in a partially disconnected environment]
121121
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#mirroring-image-set-full[Mirroring an image set in a fully disconnected environment]
122-
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#oc-mirror-updating-cluster-manifests_installing-mirroring-disconnected[Installing the ImageContentSourcePolicy and CatalogSource resources into the cluster]
122+
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#oc-mirror-updating-cluster-manifests_installing-mirroring-disconnected[Configuring your cluster to use the resources generated by oc-mirror]
123123

124124
// Performing a dry run
125125
include::modules/oc-mirror-dry-run.adoc[leveloffset=+1]

modules/oc-mirror-differential-updates.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ You must use the same storage backend as the initial execution of oc-mirror for
3333
* If you specified a top-level namespace for the mirror registry during the initial image set creation, then you must use this same namespace every time you run the oc-mirror plugin for the same mirror registry.
3434
====
3535
36-
. Install the `ImageContentSourcePolicy` and `CatalogSource` resources into the cluster.
36+
. Configure your cluster to use the resources generated by oc-mirror.

modules/oc-mirror-disk-to-mirror.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ This command updates the mirror registry with the image set and generates the `I
4141

4242
.Next steps
4343

44-
* Install the `ImageContentSourcePolicy` and `CatalogSource` resources into the cluster.
44+
* Configure your cluster to use the resources generated by oc-mirror.

modules/oc-mirror-mirror-to-mirror.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ $ oc mirror --config=./imageset-config.yaml \// <1>
4545

4646
.Next steps
4747

48-
* Install the `ImageContentSourcePolicy` and `CatalogSource` resources into the cluster.
48+
* Configure your cluster to use the resources generated by oc-mirror.

modules/oc-mirror-oci-format.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ You can optionally use the `--oci-insecure-signature-policy` flag to not push si
132132

133133
.Next steps
134134

135-
* Install the `ImageContentSourcePolicy` and `CatalogSource` resources into the cluster.
135+
* Configure your cluster to use the resources generated by oc-mirror.

modules/oc-mirror-updating-cluster-manifests.adoc

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
:_content-type: PROCEDURE
77
[id="oc-mirror-updating-cluster-manifests_{context}"]
8-
= Installing the ImageContentSourcePolicy and CatalogSource resources into the cluster
8+
= Configuring your cluster to use the resources generated by oc-mirror
99

10-
// TODO: Can we find a better title / more generic than calling out the two resources?
10+
After you have mirrored your image set to the mirror registry, you must apply the generated `ImageContentSourcePolicy`, `CatalogSource`, and release image signature resources into the cluster.
1111

12-
After you have mirrored your image set to the mirror registry, you must install the generated `ImageContentSourcePolicy` and `CatalogSource` resources into the cluster.
13-
14-
The `ImageContentSourcePolicy` resource associates the mirror registry with the source registry and redirects image pull requests from the online registries to the mirror registry. The `CatalogSource` resource is used by Operator Lifecycle Manager (OLM) to retrieve information about the available Operators in the mirror registry.
12+
The `ImageContentSourcePolicy` resource associates the mirror registry with the source registry and redirects image pull requests from the online registries to the mirror registry. The `CatalogSource` resource is used by Operator Lifecycle Manager (OLM) to retrieve information about the available Operators in the mirror registry. The release image signatures are used to verify the mirrored release images.
1513

1614
.Prerequisites
1715

@@ -22,25 +20,32 @@ The `ImageContentSourcePolicy` resource associates the mirror registry with the
2220

2321
. Log in to the OpenShift CLI as a user with the `cluster-admin` role.
2422

25-
. Apply the YAML files from the results directory to the cluster:
23+
. Apply the YAML files from the results directory to the cluster by running the following command:
2624
+
2725
[source,terminal]
2826
----
2927
$ oc apply -f ./oc-mirror-workspace/results-1639608409/
3028
----
3129

30+
. Apply the release image signatures to the cluster by running the following command:
31+
+
32+
[source,terminal]
33+
----
34+
$ oc apply -f ./oc-mirror-workspace/results-1639608409/release-signatures/
35+
----
36+
3237
// TODO: Any example output to show?
3338

3439
.Verification
3540

36-
. Verify that the `ImageContentSourcePolicy` resources were successfully installed:
41+
. Verify that the `ImageContentSourcePolicy` resources were successfully installed by running the following command:
3742
+
3843
[source,terminal]
3944
----
4045
$ oc get imagecontentsourcepolicy --all-namespaces
4146
----
4247

43-
. Verify that the `CatalogSource` resources were successfully installed:
48+
. Verify that the `CatalogSource` resources were successfully installed by running the following command:
4449
+
4550
[source,terminal]
4651
----

updating/updating-restricted-network-cluster/mirroring-image-repository.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The following steps outline the high-level workflow on how to mirror images to a
2727

2828
.. Mirror your targeted release images directly to a mirror registry, or to removable media and then to a mirror registry.
2929

30-
.. Install the `ImageContentSourcePolicy` and `CatalogSource` resources that oc-mirror generated into the cluster.
30+
.. Configure your cluster to use the resources generated by the oc-mirror plugin.
3131

3232
.. Repeat these steps as needed to update your mirror registry.
3333

@@ -131,7 +131,7 @@ include::modules/oc-mirror-mirror-to-disk.adoc[leveloffset=+4]
131131
// Mirroring from disk to mirror in a disconnected environment
132132
include::modules/oc-mirror-disk-to-mirror.adoc[leveloffset=+4]
133133

134-
// Installing the ImageContentSourcePolicy and CatalogSource resources into the cluster
134+
// Configuring your cluster to use the resources generated by oc-mirror
135135
include::modules/oc-mirror-updating-cluster-manifests.adoc[leveloffset=+2]
136136

137137
[id="updating-mirror-registry-content"]
@@ -153,7 +153,7 @@ include::modules/oc-mirror-differential-updates.adoc[leveloffset=+3]
153153
* xref:../../updating/updating-restricted-network-cluster/mirroring-image-repository.adoc#oc-mirror-image-set-examples_mirroring-ocp-image-repository[Image set configuration examples]
154154
* xref:../../updating/updating-restricted-network-cluster/mirroring-image-repository.adoc#mirroring-image-set-partial[Mirroring an image set in a partially disconnected environment]
155155
* xref:../../updating/updating-restricted-network-cluster/mirroring-image-repository.adoc#mirroring-image-set-full[Mirroring an image set in a fully disconnected environment]
156-
* xref:../../updating/updating-restricted-network-cluster/mirroring-image-repository.adoc#oc-mirror-updating-cluster-manifests_mirroring-ocp-image-repository[Installing the ImageContentSourcePolicy and CatalogSource resources into the cluster]
156+
* xref:../../updating/updating-restricted-network-cluster/mirroring-image-repository.adoc#oc-mirror-updating-cluster-manifests_mirroring-ocp-image-repository[Configuring your cluster to use the resources generated by oc-mirror]
157157

158158
// Performing a dry run
159159
include::modules/oc-mirror-dry-run.adoc[leveloffset=+2]

0 commit comments

Comments
 (0)