You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/microshift-oc-mirror-list-ops-catalogs.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
= Inspecting catalog contents by using the oc-mirror plugin
8
8
9
9
[role="_abstract"]
10
-
Use the following example procedure to select a catalog and list Operators to add to your oc-mirror plugin image set configuration file. You must use `oc mirror` v1 to select a catalog and list Operators.
10
+
Use the following example procedure to select a catalog and list Operators to add to your oc-mirror plugin image set configuration file.
11
11
12
12
[NOTE]
13
13
====
@@ -26,14 +26,14 @@ If you use your own catalogs and Operators, you can push the images directly to
26
26
+
27
27
[source,terminal,subs="attributes+"]
28
28
----
29
-
$ oc mirror list operators --version {product-version}--catalogs
29
+
$ oc mirror list operators --version {product-version}--catalogs--v2
30
30
----
31
31
32
32
. Get a list of Operators in the Red Hat Operators catalog by running the following command:
33
33
+
34
34
[source,terminal]
35
35
----
36
-
$ oc mirror list operators <--catalog=<catalog_source>>
36
+
$ oc mirror list operators --catalog=<catalog_source>--v2
37
37
----
38
38
+
39
39
Replace `<catalog_source>` with your catalog source, such as `registry.redhat.io/redhat/redhat-operator-index:v{product-version}` or `quay.io/operatorhubio/catalog:latest`.
@@ -46,13 +46,13 @@ Replace `<catalog_source>` with your catalog source, such as `registry.redhat.io
46
46
+
47
47
[source,terminal,subs="attributes+"]
48
48
----
49
-
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v{product-version} --package=amq-broker-rhel9
49
+
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v{product-version} --package=amq-broker-rhel9 --v2
50
50
----
51
51
.. Get a list of versions within a channel by running the following command:
52
52
+
53
53
[source,terminal,subs="attributes+"]
54
54
----
55
-
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v{product-version} --package=amq-broker-rhel9 --channel=7.13.x
55
+
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v{product-version} --package=amq-broker-rhel9 --channel=7.13.x --v2
<1> Set the channel to retrieve {product-title} images from.
44
-
<2> Add `graph: true` to build and push the graph-data image to the mirror registry.
45
-
The graph-data image is required to create OpenShift Update Service (OSUS).
46
-
The `graph: true` field also generates the `UpdateService` custom resource manifest.
47
-
The `oc` command-line interface (CLI) can use the `UpdateService` custom resource manifest to create OSUS.
48
-
For more information, see _About the OpenShift Update Service_.
49
-
<3> Set the Operator catalog to retrieve the {product-title} images from.
50
-
<4> Specify only certain Operator packages to include in the image set. Remove this field to retrieve all packages in the catalog.
51
-
<5> Specify any additional images to include in image set.
45
+
+
46
+
47
+
`mirror.platform.channels.name`:: Set the channel to retrieve {product-title} images from.
48
+
`mirror.platform.graph`:: Add `graph: true` to build and push the graph-data image to the mirror registry. The graph-data image is required to create OpenShift Update Service (OSUS). The `graph: true` field also generates the `UpdateService` custom resource manifest. The `oc` command-line interface (CLI) can use the `UpdateService` custom resource manifest to create OSUS. For more information, see _About the OpenShift Update Service_.
49
+
`mirror.operators.catalog`:: Set the Operator catalog to retrieve the {product-title} images from.
50
+
`mirror.operators.packages`:: Specify only certain Operator packages to include in the image set. Remove this field to retrieve all packages in the catalog.
51
+
`mirror.operators.packages.channels.name`:: Specifies only certain channels of the Operator packages to include in the image set. You must always include the default channel for the Operator package even if you do not use the bundles in that channel. You can find the default channel by running the following command: `oc mirror list operators --catalog=<catalog_name> --package=<package_name> --v2`.
52
+
`mirror.additionalImages`:: Specify any additional images to include in image set.
52
53
+
53
54
[NOTE]
54
55
====
55
-
In oc-mirror plugin v2, you must use explicit registry hostnames for all images listed under `additionalImages`. Otherwise, images are mirrored to incorrect target paths.
56
+
You must use explicit registry hostnames for all images listed under `additionalImages`. Without explicit hostnames, the plugin mirrors the images to unexpected target paths.
56
57
====
57
-
58
-
// Are there more relevant example version numbers we can use in the example above?
59
-
// Also, are there any other callouts that would be helpful for users here?
|The Operator channel name, unique within a package, to include in the image set.
229
+
+
230
+
[NOTE]
231
+
====
232
+
You must use explicit registry hostnames for all images listed under `additionalImages`. Without explicit hostnames, the plugin mirrors the images to unexpected target paths.
0 commit comments