Tekton Interceptor to get a list of Tekton
PipelineRun
frompipeline-config
and trigger them
pipeline-config-trigger
reads pipeline-config
from InterceptorRequest#extensions["pipeline-config"]
, builds a list of PipelineRun
based
on InterceptorRequest
, and triggers them after asynchronously.
pipeline-config-trigger
can be configured by using environment variables, a configuration file, or flags.
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() |
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:
$HOME/.config/pipeline-config-trigger/config.yaml
/etc/config/pipeline-config-trigger/config.yaml
$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
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() |