Component ยท Shared or other
DeploymentPipeline
BOTH Concept Other
What it is
A deployment pipeline is an ordered list of environments that says where an agent can go. It is an OpenChoreo DeploymentPipeline resource made of promotion paths. Each path names a source environment and the target environments it can be promoted to. A project points at exactly one pipeline.
It is the route of a relay race. The baton starts with the first runner, and the track says who may take it next.
Why it exists
Teams want agents to go to development first and reach production only through the stages in between. The pipeline writes that route down once.
How it works
- A path has a sourceEnvironmentRef and a list of targetEnvironmentRefs. The default pipeline created by the chart has one path whose source is the environment default and which has no targets.
- The lowest environment is a source that no other path targets. A deploy always goes there.
- Promotion (POST .../agents/{agent}/promote) moves a deployment to a target environment of the pipeline.
- POST /orgs/{org}/deployment-pipelines (permission amp:deployment-pipeline:create) creates a pipeline, and its name is made from the display name. A project is linked by setting the pipeline reference on the project.
- Creating a project prepares the project's namespace in every environment its pipeline names.
Key facts
- OpenChoreo kind
- DeploymentPipeline
- Core field
- promotionPaths (source and targets)
- Deploy target
- The lowest environment
- Permissions
- amp:deployment-pipeline:*
- Default pipeline
- default, one path, no targets
Talks to (1)
- depends on Environment (OC Environment) promotionPaths between environments
Used by (1)
- needed by Project (OC Project) deploymentPipelineRef