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 event routing | Compare independent filters and mutually exclusive switch cases in one tutorial with shared helpers. | Go and YAML |