This is a cache of https://docs.openshift.com/serverless/1.29/eventing/triggers/describe-triggers-cli.html. It is a snapshot of the page at 2024-11-25T17:08:46.882+0000.
Describe triggers from the command line - Triggers | Eventing | Red Hat OpenShift Serverless 1.29
×

Using the Knative (kn) cli to describe triggers provides a streamlined and intuitive user interface.

Describing a trigger by using the Knative cli

You can use the kn trigger describe command to print information about existing triggers in your cluster by using the Knative cli.

Prerequisites
  • The OpenShift Serverless Operator and Knative Eventing are installed on your OpenShift Container Platform cluster.

  • You have installed the Knative (kn) cli.

  • You have created a trigger.

Procedure
  • Enter the command:

    $ kn trigger describe <trigger_name>
    Example output
    Name:         ping
    Namespace:    default
    Labels:       eventing.knative.dev/broker=default
    Annotations:  eventing.knative.dev/creator=kube:admin, eventing.knative.dev/lastModifier=kube:admin
    Age:          2m
    Broker:       default
    Filter:
      type:       dev.knative.event
    
    Sink:
      Name:       edisplay
      Namespace:  default
      Resource:   Service (serving.knative.dev/v1)
    
    Conditions:
      OK TYPE                  AGE REASON
      ++ Ready                  2m
      ++ BrokerReady            2m
      ++ DependencyReady        2m
      ++ Subscribed             2m
      ++ SubscriberResolved     2m