Catalog queries
Note: By default, Catalogd is installed with TLS enabled for the catalog webserver.
The following examples will show this default behavior, but for simplicity's sake will ignore TLS verification in the curl commands using the -k
flag.
You can use the curl
command with jq
to query catalogs that are installed on your cluster.
Package queries
- Available packages in a catalog
- Packages that support
AllNamespaces
install mode and do not use webhooks -
jq -c 'select(.schema == "olm.bundle") | {"package":.package, "version":.properties[] | select(.type == "olm.bundle.object").value.data | @base64d | fromjson | select(.kind == "ClusterServiceVersion" and (.spec.installModes[] | select(.type == "AllNamespaces" and .supported == true) != null) and .spec.webhookdefinitions == null).spec.version}'
- Package metadata
- Catalog blobs in a package
Channel queries
- Channels in a package
- Versions in a channel
- Latest version in a channel and upgrade path
Bundle queries
- Bundles in a package
- Bundle dependencies and available APIs