Skip to content

Files

Latest commit

 

History

History
56 lines (39 loc) · 2.53 KB

pipeline-config-trigger.md

File metadata and controls

56 lines (39 loc) · 2.53 KB

pipeline-config-trigger

Tekton Interceptor to get a list of Tekton PipelineRun from pipeline-config and trigger them

Overview

pipeline-config-trigger reads pipeline-config from InterceptorRequest#extensions["pipeline-config"] , builds a list of PipelineRun based on InterceptorRequest , and triggers them after asynchronously.

Service Configuration

pipeline-config-trigger can be configured by using environment variables, a configuration file, or flags.

Environment Variables

Environment Variable Description Required Default
ADDR The address and port. No "0.0.0.0:80"
WORKERS The number of workers to create PipelineRun. No runtime.NumCPU()

Configuration File

Field Name Description Required Default
addr The address and port. No "0.0.0.0:80"
workers The number of workers to create PipelineRun. No runtime.NumCPU()

Sample configuration file:

addr: "0.0.0.0:80"
workers: 8

By default, pipeline-config-trigger lookups a configuration file in the following order:

  1. $HOME/.config/pipeline-config-trigger/config.yaml
  2. /etc/config/pipeline-config-trigger/config.yaml
  3. $PWD/config/pipeline-config-trigger/config.yaml

Also, pipeline-config-trigger allows to set a path to a configuration file by using a --config flag:

pipeline-config-trigger --config=$PWD/pipeline-config-trigger.yaml

Flags

Flag Name Description Required Default
config The path to the config file. No ""
addr The address and port. No "0.0.0.0:80"
workers The number of workers to create PipelineRun. No runtime.NumCPU()