Skip to content

Commit 8ef9a11

Browse files
Merge pull request #59876 from michaelryanpeter/ocpbugs-12151-oc-get-packagemainfests-procedure-step
OCPBUGS#12151: oc get packagemanifests procedure step
2 parents 9da3073 + fdc32e9 commit 8ef9a11

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

modules/olm-installing-specific-version-cli.adoc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,32 @@ Kind: PackageManifest
116116
+
117117
[TIP]
118118
====
119-
You can format an Operator's version and channel information in the YAML format by running the following command:
119+
You can print an Operator's version and channel information in the YAML format by running the following command:
120120

121121
[source,terminal]
122122
----
123123
$ oc get packagemanifests <operator_name> -n <catalog_namespace> -o yaml
124124
----
125125
====
126126
127+
** If more than one catalog is installed in a namespace, run the following command to look up the available versions and channels of an Operator from a specific catalog:
128+
+
129+
[source,terminal]
130+
----
131+
$ oc get packagemanifest \
132+
--selector=catalog=<catalogsource_name> \
133+
--field-selector metadata.name=<operator_name> \
134+
-n <catalog_namespace> -o yaml
135+
----
136+
+
137+
[IMPORTANT]
138+
====
139+
If you do not specify the Operator's catalog, running the `oc get packagemanifest` and `oc describe packagemanifest` commands might return a package from an unexpected catalog if the following conditions are met:
140+
141+
* Multiple catalogs are installed in the same namespace.
142+
* The catalogs contain the same Operators or Operators with the same name.
143+
====
144+
127145
. An Operator group, defined by an `OperatorGroup` object, selects target namespaces in which to generate required role-based access control (RBAC) access for all Operators in the same namespace as the Operator group.
128146
+
129147
The namespace to which you subscribe the Operator must have an Operator group that matches the install mode of the Operator, either the `AllNamespaces` or `SingleNamespace` mode. If the Operator you intend to install uses the `AllNamespaces` mode, then the `openshift-operators` namespace already has an appropriate Operator group in place.

0 commit comments

Comments
 (0)