The project is an addon for tektoncd-pipeline
The tektoncd-pipeline is a k8s native CI/CD tool, it can create pipeline for tasks processing,
but there is no trigger to kick off a pipeline unless use kubectl create -f to create a CRD named pipelinerun.
It's not good, so this project is try to build a triger.
The basic idea is:
- Leverage
Knative/event-contrib(https://github.com/knative/eventing-contrib) to be a event adepter to introduce different event source, such asgithub,kafka.etc. tekton-listenerwill create aknative servicewhen aEventBindingis applied. TheKSVwill standby for eventing fromknative/event-contriband handle the event when received.- When received event, it will get template from
ListenerTemplateand bind the event, then createPipelineResourceandPipelineRunto trigger thePipeline - Event should be
CloudEvent(https://github.com/cloudevents/spec)
For now (2019.6.21) the project is still not complete...