Skip to content

Knative Eventing code samples

Use the following code samples to help you understand the various use cases for Knative Eventing and Event Sources. Learn more about Knative Eventing and Eventing Sources.

See all Knative code samples in GitHub.

Name Description Languages
Hello World A quick introduction that highlights how to deploy an app using Knative. Go and Python
GitHub source Shows how to wire GitHub events for consumption by a Knative Service. YAML
GitLab source Shows how to wire GitLab events for consumption by a Knative Service. YAML
Apache Kafka Channel Install and configure the Apache Kafka Channel as the default Channel configuration for Knative Eventing. YAML
Writing an event source using JavaScript This tutorial provides instructions to build an event source in JavaScript and implement it with a ContainerSource or SinkBinding. JavaScript
Parallel with multiple cases Create a Parallel with two branches. YAML
Parallel with mutually exclusive cases Create a Parallel with mutually exclusive branches. YAML

We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.

× OK