Fission MQT integration with keda (#1657)
Fission MQT integration based on Keda with Kafka connector
This commit is contained in:
@@ -645,6 +645,34 @@ type (
|
||||
|
||||
// Content type of payload
|
||||
ContentType string `json:"contentType"`
|
||||
|
||||
// The period to check each trigger source on every ScaledObject, and scale the deployment up or down accordingly
|
||||
// +optional
|
||||
PollingInterval *int32 `json:"pollingInterval,omitempty"`
|
||||
|
||||
// The period to wait after the last trigger reported active before scaling the deployment back to 0
|
||||
// +optional
|
||||
CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"`
|
||||
|
||||
// Minimum number of replicas KEDA will scale the deployment down to
|
||||
// +optional
|
||||
MinReplicaCount *int32 `json:"minReplicaCount,omitempty"`
|
||||
|
||||
// Maximum number of replicas KEDA will scale the deployment up to
|
||||
// +optional
|
||||
MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
|
||||
|
||||
// ScalerTrigger fields
|
||||
// +optional
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
|
||||
// Secret name
|
||||
// +optional
|
||||
Secret string `json:"secret,omitempty"`
|
||||
|
||||
// Kind of Message Queue Trigger to be created, by default its fission
|
||||
// +optional
|
||||
MqtKind string `json:"mqtkind,omitempty"`
|
||||
}
|
||||
|
||||
// TimeTrigger invokes the specific function at a time or
|
||||
|
||||
@@ -710,6 +710,33 @@ func (in *MessageQueueTriggerList) DeepCopyObject() runtime.Object {
|
||||
func (in *MessageQueueTriggerSpec) DeepCopyInto(out *MessageQueueTriggerSpec) {
|
||||
*out = *in
|
||||
in.FunctionReference.DeepCopyInto(&out.FunctionReference)
|
||||
if in.PollingInterval != nil {
|
||||
in, out := &in.PollingInterval, &out.PollingInterval
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
if in.CooldownPeriod != nil {
|
||||
in, out := &in.CooldownPeriod, &out.CooldownPeriod
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
if in.MinReplicaCount != nil {
|
||||
in, out := &in.MinReplicaCount, &out.MinReplicaCount
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
if in.MaxReplicaCount != nil {
|
||||
in, out := &in.MaxReplicaCount, &out.MaxReplicaCount
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
if in.Metadata != nil {
|
||||
in, out := &in.Metadata, &out.Metadata
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user