EventSource Spec

EventSource CRD Specification

EventSource

Field Description
apiVersion string events.openfunction.io/v1alpha1
kind string EventSource
metadata v1.ObjectMeta (Optional) Refer to v1.ObjectMeta
spec EventSourceSpec Refer to EventSourceSpec
status EventSourceStatus Status of EventSource

EventSourceSpec

Belong to EventSource

Field Description
eventBus string (Optional) Name of the EventBus resource associated with the event source
redis map[string]RedisSpec (Optional) The definition of a Redis event source, key represents the event name, refer to RedisSpec
kafka map[string]KafkaSpec (Optional) The definition of a Kafka event source, key represents the event name, refer to KafkaSpec
cron map[string]CronSpec (Optional) The definition of a Cron event source, key represents the event name, refer to CronSpec
sink SinkSpec (Optional) Definition of the Sink (addressable access resource, i.e. synchronization request) associated with the event source, cf. SinkSpec

SinkSpec

Belong to EventSourceSpec

Field Description
ref Reference Refer to Reference

Reference

Belong to SinkSpec

The resources cited are generally Knative Service

Field Description
kind string The type of the referenced resource. Default is Service
namespace string The namespace of the referenced resource, by default the same as the namespace of the Trigger
name string Name of the referenced resource, e.g. function-ksvc
apiVersion string The apiVersion of the referenced resource. Default is serving.knative.dev/v1

Redis

Event source specification of Redis

Kafka

Event source specification of Kafka

Cron

Event source specification of Cron


Last modified September 6, 2021: Add Chinese docs (3d1d7bd)