The project is used for listener on gitlab
webhook and redirect event received to a addressable
application, for example:
tekton/trigger
(https://github.com/tektoncd/triggers).
It's k8s native and implements by a k8s controller.
You must install these tools:
- go: The language Tektoncd-pipeline-operator is built in
- dep: For managing external Go dependencies. - Please Install dep v0.5.0 or greater.
- ko: Build and deploy Go applications on Kubernetes
- The project implements
Controller/reconciler
based oninjection controller
ofknative/pkg
- Expose applycation by loadbalance k8s
Service
, so please ensure there is extenal loadbalance installed in your env.
- Git clone the repo.
- ko apply -f ./config
- kubectl apply -f ./samples/gitlabsecret.yaml (render your own
accessToken
andsecretToken
, please goole it if not familiar) - kubectl apply -f ./samples/gitlabSample.yaml