Knative: Operator’s Handbook

Event registry

Knative comes with a simple Event Registry. Using the registry, you can discover the different types of events you can consume from the Broker.

The registry aims to help you create Triggers against the Broker. When an event source is created, the registry is updated with the available event types from that source.

Event Registry before any event sources are registered:

$ kubectl get eventtypes
No resources found.

Register an event source, in this case a CronJobSource pointing to a Broker:

$ kubectl apply -f cronjob-source-broker.yaml
cronjobsource.sources.eventing.knative.dev/test-cronjob-source-broker created

Event Registry after the event source is registered:

$ kubectl get eventtypes
NAME    TYPE          SOURCE               SCHEMA   BROKER    DESCRIPTION   READY   REASON
dev.knative.cronjob.event-84d26ea9-1a91-11ea-8292-42010a840008   dev.knative.cronjob.event   /apis/v1/namespaces/default/cronjobsources/test-cronjob-source-broker            default                 True