mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * serverless-kn-source.adoc
|
|
|
|
[id="serverless-list-source_{context}"]
|
|
= Listing available event sources using `kn`
|
|
|
|
You can list available event sources by using the following command:
|
|
----
|
|
$ kn source list
|
|
----
|
|
Here is an example output:
|
|
----
|
|
NAME TYPE RESOURCE SINK READY
|
|
a1 ApiServerSource apiserversources.sources.knative.dev svc:eshow2 True
|
|
b1 SinkBinding sinkbindings.sources.knative.dev svc:eshow3 False
|
|
p1 PingSource pingsources.sources.knative.dev svc:eshow1 True
|
|
----
|
|
|
|
== Listing event sources of a specific type only
|
|
|
|
You can list event sources of a specific type only, by using the `--type` flag.
|
|
For example, to list all event sources of type `PingSource`:
|
|
----
|
|
$ kn source list --type PingSource
|
|
----
|
|
Here is an example output:
|
|
----
|
|
NAME TYPE RESOURCE SINK READY
|
|
p1 PingSource pingsources.sources.knative.dev svc:eshow1 True
|
|
----
|