This is a cache of https://docs.openshift.com/serverless/1.34/eventing/discovery/list-event-source-types-cli.html. It is a snapshot of the page at 2024-11-24T16:35:57.325+0000.
Listing event source types from the command line - Event discovery | Eventing | Red Hat OpenShift Serverless 1.34
×

Using the Knative (kn) cli provides a streamlined and intuitive user interface to view available event source types on your cluster.

Listing available event source types by using the Knative cli

You can list event source types that can be created and used on your cluster by using the kn source list-types cli command.

Prerequisites
  • The OpenShift Serverless Operator and Knative Eventing are installed on the cluster.

  • You have installed the Knative (kn) cli.

Procedure
  1. List the available event source types in the terminal:

    $ kn source list-types
    Example output
    TYPE              NAME                                            DESCRIPTION
    ApiServerSource   apiserversources.sources.knative.dev            Watch and send Kubernetes API events to a sink
    PingSource        pingsources.sources.knative.dev                 Periodically send ping events to a sink
    SinkBinding       sinkbindings.sources.knative.dev                Binding for connecting a PodSpecable to a sink
  2. Optional: On OpenShift Container Platform, you can also list the available event source types in YAML format:

    $ kn source list-types -o yaml