1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/serverless-list-source.adoc
2020-09-30 18:43:42 +00:00

47 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless-listing-event-sources.adoc
[id="serverless-list-source_{context}"]
= Listing available event sources using `kn`
* List available event sources by entering the following command:
+
[source,terminal]
----
$ kn source list
----
.Example output
[source,terminal]
----
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.
* List available event sources of type `PingSource` by entering the following command:
+
[source,terminal]
----
$ kn source list --type PingSource
----
+
.Example output
+
[source,terminal]
----
NAME TYPE RESOURCE SINK READY
p1 PingSource pingsources.sources.knative.dev svc:eshow1 True
----