Skip to content

Commit 00546f4

Browse files
authored
Merge pull request #66043 from openshift/revert-63332-install-config-yaml
Revert "OCPBUGS-10304: Document oc-mirror command for creating ImageContentSou…"
2 parents 2cb94e0 + 99a6cdf commit 00546f4

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

modules/installation-bare-metal-config-yaml.adoc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,7 @@ ifdef::ibm-z,ibm-z-kvm[]
298298
<15> Add the `additionalTrustBundle` parameter and value. The value must be the contents of the certificate file that you used for your mirror registry. The certificate file can be an existing, trusted certificate authority or the self-signed certificate that you generated for the mirror registry.
299299
endif::ibm-z,ibm-z-kvm[]
300300
ifndef::openshift-origin[]
301-
<16> Provide the `imageContentSources` section according to the output of the command that you used to mirror the repository.
302-
+
303-
[IMPORTANT]
304-
====
305-
* When using the `oc adm release mirror` command, use the output from the `imageContentSources` section.
306-
* When using `oc mirror` command, use the `repositoryDigestMirrors` section of the `ImageContentSourcePolicy` file that results from running the command.
307-
* `ImageContentSourcePolicy` is deprecated. For more information see _Configuring image registry repository mirroring_.
308-
====
301+
<16> Provide the `imageContentSources` section from the output of the command to mirror the repository.
309302
endif::openshift-origin[]
310303
ifdef::openshift-origin[]
311304
<15> Provide the `imageContentSources` section from the output of the command to mirror the repository.

modules/installation-initializing-manual.adoc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,26 +144,16 @@ it in the `<installation_directory>`.
144144
====
145145
You must name this configuration file `install-config.yaml`.
146146
====
147-
+
148147
ifdef::restricted,restricted-upi[]
149-
+
150148
** Unless you use a registry that {op-system} trusts by default, such as
151149
`docker.io`, you must provide the contents of the certificate for your mirror
152150
repository in the `additionalTrustBundle` section. In most cases, you must
153151
provide the certificate for your mirror.
154152
** You must include the `imageContentSources` section from the output of the command to
155153
mirror the repository.
156-
+
157-
[IMPORTANT]
158-
====
159-
** The `ImageContentSourcePolicy` file is generated as an output of `oc mirror` after the mirroring process is finished.
160-
** The `oc mirror` command generates an `ImageContentSourcePolicy` file which contains the YAML needed to define `ImageContentSourcePolicy`.
161-
Copy the text from this file and paste it into your `install-config.yaml` file.
162-
** You must run the 'oc mirror' command twice. The first time you run the `oc mirror` command, you get a full `ImageContentSourcePolicy` file. The second time you run the `oc mirror` command, you only get the difference between the first and second run.
163-
Because of this behavior, you must always keep a backup of these files in case you need to merge them into one complete `ImageContentSourcePolicy` file. Keeping a backup of these two output files ensures that you have a complete `ImageContentSourcePolicy` file.
164-
====
165154
endif::restricted,restricted-upi[]
166155
+
156+
167157
ifndef::aws-china,aws-gov,aws-secret,azure-gov,ash,ash-default,ash-network,gcp-shared,ibm-cloud-private,ibm-power-vs-private[]
168158
[NOTE]
169159
====
@@ -282,4 +272,4 @@ endif::[]
282272
ifeval::["{context}" == "installing-ibm-power-vs-private-cluster"]
283273
:!ibm-power-vs-private:
284274
endif::[]
285-
:!platform:
275+
:!platform:

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ $ oc mirror --config=./imageset-config.yaml \// <1>
4040
. Navigate into the `oc-mirror-workspace/` directory that was generated.
4141
. Navigate into the results directory, for example, `results-1639608409/`.
4242
. Verify that YAML files are present for the `ImageContentSourcePolicy` and `CatalogSource` resources.
43-
44-
[NOTE]
45-
====
46-
The `repositoryDigestMirrors` section of the `ImageContentSourcePolicy` YAML file is used for the `install-config.yaml` file during installation.
47-
====
4843
+
4944
// TODO: Test and get some better wording/example output.
5045

0 commit comments

Comments
 (0)