Chapter 10. Connecting an event source to a function


When you deploy functions, the platform creates Knative services on an OpenShift Container Platform cluster. You can connect these functions to Knative Eventing components to receive incoming events.

10.1. Connect an event source to a function

Functions run as Knative services on an OpenShift Container Platform cluster. When you create an event source in the OpenShift Container Platform web console, specify a deployed function to receive events from that source.

Prerequisites

  • You have installed the OpenShift Serverless Operator, Knative Serving, and Knative Eventing are on your OpenShift Container Platform cluster.
  • You have logged in to the web console.
  • You have created a project or have access to a project with the appropriate roles and permissions to create applications and other workloads in OpenShift Container Platform.
  • You have created and deployed a function.

Procedure

  1. Create an event source of any type, by navigating to +Add Event Source and selecting the event source type that you want to create.
  2. In the Target section of the Create Event Source form view, select your function in the Resource list.
  3. Click Create.

Verification

  1. Verify that the event source exists and connects to the function by viewing the Topology page.
  2. Navigate to Topology.
  3. View the event source and click the connected function to see the function details in the right panel.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top