Trigger Spec
Trigger CRD Specification
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, key represents 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. E.g. default |
eventSource string | EventSource name, e.g. kafka-eventsource |
event string | Event name, e.g. eventA |
Subscriber
Belong to TriggerSpec
Field | Description |
---|---|
condition string | Trigger conditions for triggers, refer to cel-spec for more writing specifications. E.g. eventA && eventB , eventA ||eventB |
sink SinkSpec | (Optional) Triggered Sink (addressable access resource, i.e. synchronization request) definition, refer to SinkSpec |
deadLetterSink SinkSpec | (Optional) Triggered dead letter Sink (addressable access resource, i.e., synchronization request) definition, refer to SinkSpec |
topic string | (Optional) Used to send post-trigger messages to the specified topic of the event bus, e.g. topicTriggered |
deadLetterTopic string | (Optional) Used to send post-trigger messages to the specified dead letter topic of the event bus, e.g. topicDL |
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 |
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.
Last modified September 6, 2021: Add Chinese docs (3d1d7bd)