Inspect catalog contents by using the oc-mirror plugin
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.
|
|
If you use your own catalogs and Operators, you can push the images directly to your internal registry. |
-
You uninstalled OpenShift CLI (
oc). -
You installed the Operator Lifecycle Manager (OLM).
-
You installed the oc-mirror plugin.
-
Get a list of available Red Hat-provided Operator catalogs to filter by running the following command:
$ oc mirror list operators --version 4.20 --catalogs -
Get a list of Operators in the Red Hat Operators catalog by running the following command:
$ oc mirror list operators <--catalog=<catalog_source>>Replace
<catalog_source>with your catalog source, such asregistry.redhat.io/redhat/redhat-operator-index:v4.20orquay.io/operatorhubio/catalog:latest. -
Select an Operator. This example uses the
amq-broker-rhel9Operator. -
Optional: To inspect the channels and versions of the Operator you want to filter, enter the following commands:
-
Get a list of channels by running the following command:
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v4.20 --package=amq-broker-rhel9 -
Get a list of versions within a channel by running the following command:
$ oc mirror list operators --catalog=registry.redhat.io/redhat/redhat-operator-index:v4.20 --package=amq-broker-rhel9 --channel=7.13.x
-
-
Create and edit an image set configuration file using the information gathered in this procedure.
-
Mirror the images from the transformed image set configuration file to a mirror registry or disk.