Code Monkey home page Code Monkey logo

triggers's Introduction

Tekton Triggers

Go Report Card

Tekton Triggers logo (Tekton cat playing with a ball)

Triggers is a Kubernetes Custom Resource Defintion (CRD) controller that allows you to extract information from events payloads (a "trigger") to create Kubernetes resources.

The contents of this repo originated from implementing this design (visible to members of the Tekton mailing list).

Background

Tekton is a Kubernetes-native, continuous integration and delivery (CI/CD) framework that enables you to create containerized, composable, and configurable workloads declaratively through CRDs. Naturally, CI/CD events contain information that should:

  • Identify the kind of event (GitHub Push, Gitlab Issue, Docker Hub Webhook, etc.)
  • Be accessible from and map to particular pipelines (Take SHA from payload to use it in pipeline X)
  • Deterministically trigger pipelines (Events/pipelines that trigger pipelines based on certain payload values)

The Tekton API enables functionality to be separated from configuration (e.g. Pipelines vs PipelineRuns) such that steps can be reusable, but it does not provide a mechanism to generate the resources (notably, PipelineRuns and PipelineResources) that encapsulate these configurations dynamically. Triggers extends the Tekton architecture with the following CRDs:

  • TriggerTemplate - Templates resources to be created (e.g. Create PipelineResources and PipelineRun that uses them)
  • TriggerBinding - Validates events and extracts payload fields
  • EventListener - Connects TriggerBindings and TriggerTemplates into an addressable endpoint (the event sink). It uses the extracted event parameters from each TriggerBinding (and any supplied static parameters) to create the resources specified in the corresponding TriggerTemplate. It also optionally allows an external service to pre-process the event payload via the interceptor field.
  • ClusterTriggerBinding - A cluster-scoped TriggerBinding

Using tektoncd/triggers in conjunction with tektoncd/pipeline enables you to easily create full-fledged CI/CD systems where the execution is defined entirely through Kubernetes resources.

You can learn more by checking out the docs

Want to start using Tekton Triggers

Install Triggers, check out the installation guide, examples or follow the getting started guide to become familiar with the project. The getting started guide walks through setting up an end-to-end image building solution, which will be triggered from GitHub push events.

Read the docs

Version Docs Examples Getting Started
HEAD Docs @ HEAD Examples @ HEAD Getting Started @ HEAD
v0.3.1 Docs @ v0.3.1 Examples @ v0.3.1 Getting Started @ v0.3.1
v0.3.0 Docs @ v0.3.0 Examples @ v0.3.0 Getting Started @ v0.3.0
v0.2.1 Docs @ v0.2.1 Examples @ v0.2.1 Getting Started @ v0.2.1
v0.1.0 Docs @ v0.1.0 Examples @ v0.1.0 Getting Started @ v0.1.0

Want to contribute

Hooray!

triggers's People

Contributors

dibyom avatar wlynch avatar mattmoor avatar bobcatfish avatar vdemeester avatar iancoffey avatar khrm avatar akihikokuroda avatar bigkevmcd avatar piyush-garg avatar vincent-pli avatar dlorenc avatar chmouel avatar gabemontero avatar afrittoli avatar imjasonh avatar cccfeng avatar carolynmabbott avatar eonpatapon avatar skaegi avatar ston1th avatar castlemilk avatar elizucker avatar fabian-k avatar a-roberts avatar bitsofinfo avatar dcherman avatar iamejboy avatar nvoskuilen avatar loafyloaf avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.