knative / serving

Kubernetes-based, scale-to-zero, request-driven compute
https://knative.dev/docs/serving/
Apache License 2.0
5.57k stars 1.16k forks source link

Emit CloudEvents (CD.foundation Events) For Knative Services #11844

Closed salaboy closed 2 years ago

salaboy commented 3 years ago

Describe the feature

It will be great to have CloudEvents being emitted when a new Service is up and ready to serve traffic and when the Service is Down and not available to serve traffic. CloudEvents should be also emitted when a new Revision of a Service is available. This will help other tools to understand what is going on with the deployed services, enabling CloudEvent based monitoring tools and integrations.

The http://cd.foundation has a specific SIG trying to define these events in a project and vendor-agnostic way and projects like Tekton already implemented a simple controller to emit these events. The Knative project can follow the same approach to keep things decoupled from Core.

SIG Events in CDF: https://github.com/cdfoundation/sig-events Tekton Controller emitting these events: https://github.com/tektoncd/experimental/tree/main/cloudevents

I am interested in understanding what the Knative community thinks about this initiative and what are the recommended next steps.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.