keptn / lifecycle-toolkit

Toolkit for cloud-native application lifecycle management
https://keptn.sh
Apache License 2.0
272 stars 111 forks source link

Integrate CloudEvents and CDEvents into Keptn #1841

Open salaboy opened 11 months ago

salaboy commented 11 months ago

The CDEvents extend the CloudEvents specification to define key CloudEvents in the lifecycle of software delivery practices. A tool like Keptn KTL would benefit by consuming and producing these events, promoting ecosystem-wide integrations based on CloudEvents.

Tools like Tekton already produce CDEvents for their PipelineRuns, and while Kubernetes don't produce CDEvents yet, projects like Knative Eventing already generate CloudEvents that can be easily mapped to CDEvents.

While I understand that KTL focuses more on observability and remediation, I see a significant benefit in producing and consuming CDEvents.

I am currently working on an example to calculate DORA metrics using CDEvents: https://github.com/salaboy/platforms-on-k8s/tree/main/chapter-9/dora-cloudevents

By creating this issue, my main goal is to show how these tools and specs can complement each other and enable users to integrate more tools.

thisthat commented 11 months ago

Keptn now emits Cloud Events. However, we should refactor the code and create a better abstraction. Currently, the events we emit are tailored to Kubernetes events.

mowies commented 9 months ago

shall we create a follow up ticket for the refactoring? i don't think we have one already @thisthat

mowies commented 8 months ago

depends on https://github.com/keptn/lifecycle-toolkit/issues/1394

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.