You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/eventing/samples/writing-event-source-easy-way/README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,16 @@
3
3
As stated in [tutorial on writing a Source with a Receive Adapter](../writing-receive-adapter-source/README.md), there are multiple ways to
4
4
create event sources. The way in that tutorial is to create an independent event source that has its own CRD.
5
5
6
-
In this tutorial though, you will build an event source in Javascript and use it with
7
-
[ContainerSource](../../../eventing/sources/README.md#meta-sources) and / or [SinkBinding](../../../eventing/sources/README.md#meta-sources).
6
+
This tutorial provides a simpler mechanism to build an event source in Javascript and use it with
7
+
[ContainerSource](../../../eventing/sources/README.md#meta-sources) and / or the [SinkBinding](../../../eventing/sources/README.md#meta-sources).
8
8
9
9
[ContainerSource](../../../eventing/sources/README.md#meta-sources) is an easy way to turn any dispatcher container into an Event Source.
10
10
Similarly, another option is using [SinkBinding](../../../eventing/sources/README.md#meta-sources)
11
11
which provides a framework for injecting environment variables into any Kubernetes resource which has a `spec.template` that looks like a Pod (aka PodSpecable).
12
12
13
-
Code for this tutorial is available [here](./).
13
+
SinkBinding is a newer concept and it should be preferred over ContainerSource.
14
+
15
+
Code for this tutorial is available [here](https://github.com/knative/docs/tree/master/docs/eventing/samples/writing-event-source-easy-way).
14
16
15
17
# Bootstrapping
16
18
@@ -131,7 +133,7 @@ EOS
131
133
132
134
Check the logs of the event display service. You will see a new message is pushed every second:
0 commit comments