mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
47 lines
1.1 KiB
Plaintext
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 ksvc:eshow2 True
|
|
b1 SinkBinding sinkbindings.sources.knative.dev ksvc:eshow3 False
|
|
p1 PingSource pingsources.sources.knative.dev ksvc: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 ksvc:eshow1 True
|
|
----
|