cdevents / community

Apache License 2.0
2 stars 7 forks source link

Create Re-Usable Keptn Lifecycle Toolkit Task template for CDEvents #30

Open agardnerIT opened 1 year ago

agardnerIT commented 1 year ago

KLT wraps the Kubernetes scheduler and can trigger arbitrary tasks before and after a pod is scheduled.

This issue covers the creation of a template KeptnTaskDefinition that emits a CDevent.

afrittoli commented 1 year ago

Thanks @agardnerIT - is this a kind of plugin to Keptn or is this something meant to ship as part of Keptn itself?

As I understand it, the goal is to be able to send CDEvents from Keptn. For other tools we've used an issue on CDEvents side to track progress and on issue on the tool side with the RFC / detail designed to be discussed by the tool community with collaboration from the CDEvents team. Do you think that would work for Keptn as well?

See https://github.com/orgs/cdevents/projects/4

agardnerIT commented 1 year ago

I suppose it could (loosely) be called a plugin, but it's really much more lightweight than that.

On the Keptn side you define a KeptnTaskDefinition which references a TypeScript script .

The SRE can then decide (via annotations) when this task fires (pre-pod-schedule, post-schedule or both).

On the Keptn side, the goal is to pull together a set of generic-enough, reusable tasks that provide a starting point for customisation.