Skip to main content
Version: v2.0.0

Knative connector

Audience: operators bridging EventMesh with Knative. Knative eventing bridge. Source receives CloudEvents pushed by a Knative broker (the source acts as the Knative subscriber); sink forwards events to a Knative service/endpoint.


Classes

DirectionClassBehavior
Sourceorg.apache.eventmesh.connector.knative.source.KnativeSourceConnectorJDK HttpServer on connector.port+connector.path buffers Knative-delivered CloudEvents; poll() drains the buffer.
Sinkorg.apache.eventmesh.connector.knative.sink.KnativeSinkConnectorPOSTs each CloudEvent to connector.sinkUrl.

Source configuration

KeyDefaultDescription
connector.port8080Listen port for broker deliveries
connector.path/Listen path

Sink configuration

KeyDefaultDescription
connector.sinkUrlhttp://localhost:8080/sinkKnative service endpoint

Running

bin/start-connector.sh with -Dconnector.class=...KnativeSourceConnector -Dconnector.mode=source -Dconnector.port=8080