1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/serverless-list-source.adoc
2020-02-21 16:00:26 +00:00

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
----