$ kn source list
Using the Knative (kn
) CLI provides a streamlined and intuitive user interface to view existing event sources on your cluster.
You can list existing event sources by using the kn source list
command.
The OpenShift Serverless Operator and Knative Eventing are installed on the cluster.
You have installed the Knative (kn
) CLI.
List the existing event sources in the terminal:
$ kn source list
NAME TYPE RESOURCE SINK READY
a1 ApiServerSource apiserversources.sources.knative.dev ksvc:eshow2 True
b1 SinkBinding sinkbindings.sources.knative.dev ksvc:eshow3 False
p1 PingSource pingsources.sources.knative.dev ksvc:eshow1 True
Optional: You can list event sources of a specific type only, by using the --type
flag:
$ kn source list --type <event_source_type>
$ kn source list --type PingSource
NAME TYPE RESOURCE SINK READY
p1 PingSource pingsources.sources.knative.dev ksvc:eshow1 True