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-receive-adapter-source/05-receive-adapter.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ func main() {
25
25
## Defining NewAdapter implementation and Start function
26
26
The adapter's `pkg` implementation consists of two main functions;
27
27
28
-
1. A `NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter {}` call, which creates the
28
+
1. A `NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter {}` call, which creates the
29
29
new adapter with passed variables via the `EnvConfigAccessor`. The created adapter will be passed the cloudevents client (which is where the events are forwarded to). This is sometimes refered
30
30
to as a sink, or `ceClient` in the Knative ecosystem. The return value is a reference to the adapter as defined by the adapter's local struct.
To generate and inject `clientset`, `cache`, `informers`, and `listers`, ensure that the specific source subdirectories has been added to the injection portion of the
14
+
To generate and inject `clientset`, `cache`, `informers`, and `listers`, ensure that the specific source subdirectories has been added to the injection portion of the
[`GithubSource`](https://github.com/knative/eventing-contrib/tree/master/github) and
17
+
[`AWSSQSSource`](https://github.com/knative/eventing-contrib/tree/master/awssqs) that can be used as a reference.
18
18
19
19
## Other ways
20
20
21
21
With the approach in this tutorial, you will create a CRD and a controller for the event source which makes it reusable.
22
22
23
-
You can also write your own event source using a [ContainerSource](../../../eventing/sources/README.md#meta-sources) which
23
+
You can also write your own event source using a [ContainerSource](../../../eventing/sources/README.md#meta-sources) which
24
24
is an easy way to turn any dispatcher container into an Event Source. Similarly, another option is using [SinkBinding](../../../eventing/sources/README.md#meta-sources)
25
25
which provides a framework for injecting environment variables into any Kubernetes resource which has a `spec.template` that looks like a Pod (aka PodSpecable).
26
26
@@ -31,7 +31,7 @@ The target audience is already familiar with Kubernetes and Go development and
31
31
wants to develop a new event source, importing their custom events via Knative
32
32
Eventing into the Knative system.
33
33
34
-
This tutorial is for having your event source in an independent repository.
34
+
This tutorial is for having your event source in an independent repository.
35
35
If you would like to contribute Knative's [`eventing-contrib`](https://github.com/knative/eventing-contrib/) and have your source
36
36
there, there are some instructions at [Adding the event source to `eventing-contrib`](./07-eventing-contrib.md).
0 commit comments