Writing an Event Source

    After completing the tutorial, you’ll have a basic event source controller as well as receive adapter, which events can be viewed through a basic Knative Service.

    Just want to see the code? The reference project is https://github.com/knative-sandbox/sample-source.

    With the approach in this tutorial, you will create a CRD and a controller for the event source which makes it reusable.

    You can also write your own event source using a which is an easy way to turn any dispatcher container into an Event Source. Similarly, another option is using SinkBinding which provides a framework for injecting environment variables into any Kubernetes resource which has a spec.template that looks like a Pod (aka PodSpecable).

    You’ll need these tools installed:

    • golang
    • (optional)
    • kubectl (optional)
    • (optional)

    You’re encouraged to clone the sample source and make changes there.

    1. Controller
    2. Receive Adapter
    3. Moving the event source to the organization