EventSource Specifications
EventSource Specifications.
This document describes the specifications of the EventSource CRD.
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, with key being the event name, refer to RedisSpec. |
kafka map[string]KafkaSpec | (Optional) The definition of a Kafka event source, with key being the event name, refer to KafkaSpec. |
cron map[string]CronSpec | (Optional) The definition of a Cron event source, with key being 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.
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 . |
GenericScaleOption
Belong to scaleOption.
Field | Description |
---|---|
pollingInterval int | This is the interval to check each trigger on. It defaults to 30 seconds. |
cooldownPeriod int | The period to wait after the last trigger reported active before scaling the resource back to 0. It defaults to 300 seconds. |
minReplicaCount int | Minimum number of replicas KEDA will scale the resource down to. It defaults to 0 . |
maxReplicaCount int | This setting is passed to the HPA definition that KEDA will create for a given resource. |
advanced kedav1alpha1.AdvancedConfig | See KEDA documentation. |
metadata map[string]string | KEDA trigger’s metadata |
authRef kedav1alpha1.ScaledObjectAuthRef | Every parameter you define in TriggerAuthentication definition does not need to be included in the metadata of the trigger for your ScaledObject definition. To reference a TriggerAuthentication from a ScaledObject you add the authenticationRef to the trigger, refer to KEDA documentation. |
当前内容版权归 OpenFunction 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 OpenFunction .