Provide CloudEvents around the management of ScaledObjects resources #3522
Closed
Description
Proposal
Event Types
-
keda.scaledobject.created.v1
-
keda.scaledobject.updated.v1
-
keda.scaledobject.removed.v1
Payload:
{
"specversion" : "1.0",
"type" : "keda.scaledobject.created.v1",
"subject" : "/{kubernetes-cluster-name}/{namespace}/scaled-objects/{resource-name}/",
"time" : "2018-04-05T17:31:00Z",
"datacontenttype" : "application/json",
"data" : {
"scaleTarget": {
"name": "sample-workload",
"apiVersion": "Deployment",
"kind": "apps/v1",
},
"replicas": {
"min": 0,
"max": 10,
"idle": 0,
},
"triggers": [
{
"type": "CPU",
"type": {
// Trigger information
}
}
],
"intervals": {
"cooldown": 300,
"polling": 30
},
"fallback": {
"threshold": 3,
"replicas": 6
}
}
}
Use-Case
Allow end-users to react to changes to their ScaledObjects by using our EventSource
CRD
Anything else?
Relates to #479
Metadata
Assignees
Labels
Type
Projects
Status
Ready To Ship