Functions can use as sinks for Knative Eventing event sources such as custom Triggers. Such Triggers will listen to events originating from your
default Broker of your Knative installation.
Here's how to setup a function as an event sink for a custom Trigger event source:
functions: myFunction: handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest events: - custom: filter: # this attribute is used to filter events based on CloudEvents attributes attributes: type: greeting
Edit this page