List operators available to install on cluster
List operators from a collection of catalogs
List your operator
PackageManifest API exposes content from existing CatalogSources on cluster. Querying that API reveals the list of operators available to install.
Note: CatalogSources in OLM are either global or namespaced. Global CatalogSources contain operators that will be available for installing in all namespaces, while namespaced CatalogSources only contains operators that are available to be installed in a specific namespace.
Using the PackageManifest API
PackageManifest API when queried, will return the union of globally available as well as namespaced available operators, from the namespace you’re querying in.
kubectl get packagemanifest -n <namespace>
The list of available operators will be displayed as an output of those above commands:
$ kubectl get packagemanifest NAME CATALOG AGE cassandra-operator Community Operators 26m etcd Community Operators 26m postgres-operator Community Operators 26m prometheus Community Operators 26m wildfly Community Operators 26m