Skip to content

Provide CloudEvents around the management of ScaledObjects resources #3522

Closed
@tomkerkhove

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

cloudeventsAll events related to CloudEvents to extend KEDAextensibilityAll issues related to extensibility of KEDAfeatureAll issues for new features that have been committed tooperations

Type

No type

Projects

  • Status

    Ready To Ship

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions