Trigger Specifications
Learn about Trigger Specifications.
This document describes the specifications of the Trigger CRD.
Trigger
Field | Description |
---|---|
apiVersion string | events.openfunction.io/v1alpha1 |
kind string | Trigger |
metadata v1.ObjectMeta | (Optional) Refer to v1.ObjectMeta |
spec TriggerSpec | Refer to TriggerSpec |
status TriggerStatus | Status of Trigger |
TriggerSpec
Belong to Trigger.
Field | Description |
---|---|
eventBus string | (Optional) Name of the EventBus resource associated with the Trigger. |
inputs map[string]Input | (Optional) The input of trigger, with key being the input name. Refer to Input. |
subscribers []Subscriber | (Optional) The subscriber of the trigger. Refer to Subscriber. |
Input
Belong to TriggerSpec.
Field | Description |
---|---|
namespace string | (Optional) The namespace name of the EventSource, which by default matches the namespace of the Trigger, for example, default . |
eventSource string | EventSource name, for example, kafka-eventsource . |
event string | Event name, for example, eventA . |
Subscriber
Belong to TriggerSpec.
Field | Description |
---|---|
condition string | Trigger conditions for triggers, refer to cel-spec for more writing specifications, for example, eventA && eventB or `eventA |
sink SinkSpec | (Optional) Triggered Sink (addressable access resource, for example, synchronization request) definition, refer to SinkSpec. |
deadLetterSink SinkSpec | (Optional) Triggered dead letter Sink (addressable access resource, for example, synchronization request) definition, refer to SinkSpec. |
topic string | (Optional) Used to send post-trigger messages to the specified topic of the event bus, for example, topicTriggered . |
deadLetterTopic string | (Optional) Used to send post-trigger messages to the specified dead letter topic of the event bus, for example, topicDL . |
SinkSpec
Belong to EventSourceSpec.
Field | Description |
---|---|
ref Reference | Refer to Reference. |
Reference
Belong to SinkSpec.
Note
The resources cited are generally Knative Service.Field | Description |
---|---|
kind string | The type of the referenced resource. It defaults to 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, for example, function-ksvc . |
apiVersion string | The apiVersion of the referenced resource. It defaults to serving.knative.dev/v1 . |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.