Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide CloudEvents around the management of ScaledObjects resources #3522

Closed
3 tasks
tomkerkhove opened this issue Aug 9, 2022 · 1 comment
Closed
3 tasks
Assignees
Labels
cloudevents All events related to CloudEvents to extend KEDA extensibility All issues related to extensibility of KEDA feature All issues for new features that have been committed to operations

Comments

@tomkerkhove
Copy link
Member

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

@tomkerkhove tomkerkhove added feature All issues for new features that have been committed to cloudevents All events related to CloudEvents to extend KEDA extensibility All issues related to extensibility of KEDA operations labels Aug 9, 2022
@tomkerkhove tomkerkhove modified the milestone: CloudEvents - Initial version Aug 9, 2022
@tomkerkhove
Copy link
Member Author

@SpiritZhou Are you planning on implementing the updated scenario as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloudevents All events related to CloudEvents to extend KEDA extensibility All issues related to extensibility of KEDA feature All issues for new features that have been committed to operations
Projects
Status: Ready To Ship
Development

No branches or pull requests

2 participants