DeploymentPipeline
A DeploymentPipeline defines the promotion paths for deploying applications across different environments in OpenChoreo. It establishes the progression order from development to production environments.
API Versionβ
openchoreo.dev/v1alpha1
Resource Definitionβ
Metadataβ
DeploymentPipelines are namespace-scoped resources.
apiVersion: openchoreo.dev/v1alpha1
kind: DeploymentPipeline
metadata:
name: <pipeline-name>
namespace: <namespace> # Namespace for grouping pipelines
Spec Fieldsβ
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
promotionPaths | [PromotionPath] | No | [] | Defines the available paths for promotion between environments |
PromotionPathβ
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sourceEnvironmentRef | EnvironmentRef | Yes | - | Reference to the source environment for promotion |
targetEnvironmentRefs | [TargetEnvironmentRef] | Yes | - | List of target environments for promotion |
EnvironmentRefβ
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
kind | string | No | Environment | Kind of the environment resource |
name | string | Yes | - | Name of the environment resource |
TargetEnvironmentRefβ
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
kind | string | No | Environment | Kind of the environment resource |
name | string | Yes | - | Name of the target environment |
Status Fieldsβ
| Field | Type | Default | Description |
|---|---|---|---|
observedGeneration | integer | 0 | The generation observed by the controller |
conditions | []Condition | [] | Standard Kubernetes conditions tracking the deployment pipeline state |
Condition Typesβ
Common condition types for DeploymentPipeline resources:
Available- Indicates if the deployment pipeline is available and configured
Examplesβ
Basic DeploymentPipelineβ
apiVersion: openchoreo.dev/v1alpha1
kind: DeploymentPipeline
metadata:
name: default-deployment-pipeline
namespace: default
spec:
promotionPaths:
- sourceEnvironmentRef:
name: development
targetEnvironmentRefs:
- name: staging
- sourceEnvironmentRef:
name: staging
targetEnvironmentRefs:
- name: production
Annotationsβ
DeploymentPipelines support the following annotations:
| Annotation | Description |
|---|---|
openchoreo.dev/display-name | Human-readable name for UI display |
openchoreo.dev/description | Detailed description of the deployment pipeline |
Related Resourcesβ
- Project - Projects reference deployment pipelines for their promotion workflows
- Environment - Environments that are connected through promotion paths