Last modified November 29, 2024

'kubectl gs get catalogs' command reference

Like with all get commands in kubectl, this command can be used to get details on one item, a Catalog custom resource in this case, or list several of them.

The Catalog CRD is namespace scoped and replaces the AppCatalog CRD which is cluster scoped. This is to improve multi-tenancy support when used with the platform API.

Usage

Get a list of catalogs

Simply execute

kubectl gs get catalogs

to list some information on all available public catalogs.

Here is some example output:

NAME                    NAMESPACE   CATALOG URL                                                   AGE
giantswarm              default     https://giantswarm.github.io/giantswarm-catalog/              1d
giantswarm-playground   default     https://giantswarm.github.io/giantswarm-playground-catalog/   1d

Get a specific catalog

When used with a catalog name as an additional argument, the command will show the latest available version of each app in the catalog according to semantic versioning.

Example:

kubectl gs get catalogs giantswarm
kubectl gs get catalogs giantswarm
CATALOG      APP NAME                       APP VERSION   VERSION            AGE
giantswarm   cert-manager-app               1.3.1         2.7.0              25h

Note: As an alternative to get catalogs, get catalog will also work.

Output

The standard tabular output format for catalogs features these columns:

  • NAME: Name of the app catalog.
  • URL: URL for the Helm chart repository.
  • AGE: How long ago was the catalog created.

When viewing the available apps within a catalog the output format features these columns:

  • CATALOG: Name of the app catalog.
  • APP NAME: Name of the app.
  • APP VERSION: Upstream version of the app.
  • VERSION: Latest version of the app.
  • AGE: How long ago was the app release created.

Flags

Here we document the flags that have a particular meaning for the get catalogs command. Use kubectl gs get catalogs --help for a full list.

--all-namespaces/-A

kubectl commonly allows to list resources for all namespaces for all get subcommands. kubectl gs get catalogs is no different. However by default we hide internal catalogs in the giantswarm namespace.

--output/-o

kubectl commonly allows to specify the output format for all get subcommands. kubectl gs get catalogs is no different.

YAML output

To inspect a catalogs main custom resource in YAML notation, add the --output yaml flag (or -o yaml in short) to the command.

The following example command would print the main resource for catalog giantswarm. It would return the Catalog resource.

kubectl gs get catalogs giantswarm --output yaml

When applied without a catalog name, the output will be a list of resources. Example:

$ kubectl gs get catalogs --output yaml
apiVersion: v1
kind: List
items:
- apiVersion: catalog.application.giantswarm.io/v1alpha1
  kind: Catalog
...

This part of our documentation refers to our vintage product. The content may be not valid anymore for our current product. Please check our new documentation hub for the latest state of our docs.