mirror-coreos-fedora-coreos.../.tekton/README.md
Huijing Hei 0b099a8512 Use Jinja2/Python script to generate the PipelineRun files
New files created:
- .tekton/templates/pipelinerun.yaml.j2 - Jinja2 template for
generating PipelineRun YAML
- .tekton/templates/streams.yaml - Configuration file defining
all streams and their settings
- ci/generate-tekton-pipelinerun.py - Python script that generates
the PipelineRun files

Files modified:
- .tekton/README.md - Updated documentation with new workflow

Assisted-by: Claude Opus 4.5 Vertex (Anthropic)
2026-04-03 21:36:42 +08:00

973 B

Generate the PipelineRun configuration files

The PipelineRun configuration files are generated from Jinja2 templates.

Files

  • templates/pipelinerun.yaml.j2 - The Jinja2 template for PipelineRun resources
  • templates/streams.yaml - Configuration defining all streams and their settings

Making changes

  • Common changes: Edit the Jinja2 template in templates/pipelinerun.yaml.j2
  • Stream-specific changes: Edit templates/streams.yaml to add/remove streams or modify their settings
  • Pipeline bundle updates: Update config.pipeline_bundle in templates/streams.yaml

After any manual changes, run the script below to regenerate the configuration files.

Script prerequisites

  • Python 3.6+
  • jinja2 (pip install jinja2)
  • pyyaml (pip install pyyaml)

Usage

# Generate all PipelineRun files
./ci/generate-tekton-pipelinerun.py

# Check if files are up to date (useful for CI)
./ci/generate-tekton-pipelinerun.py --check