Skip to main content
Version: Next

DeploymentPipeline

A DeploymentPipeline defines the promotion paths and approval workflows for deploying applications across different environments in OpenChoreo. It establishes the progression order from development to production environments and specifies which promotions require approval.

API Version

openchoreo.dev/v1alpha1

Resource Definition

Metadata

DeploymentPipelines are namespace-scoped resources that must be created within an Organization's namespace.

apiVersion: openchoreo.dev/v1alpha1
kind: DeploymentPipeline
metadata:
name: <pipeline-name>
namespace: <org-namespace> # Organization namespace

Spec Fields

FieldTypeRequiredDefaultDescription
promotionPaths[PromotionPath]No[]Defines the available paths for promotion between environments

PromotionPath

FieldTypeRequiredDefaultDescription
sourceEnvironmentRefstringYes-Reference to the source environment for promotion
targetEnvironmentRefs[TargetEnvironmentRef]Yes-List of target environments and their approval requirements

TargetEnvironmentRef

FieldTypeRequiredDefaultDescription
namestringYes-Name of the target environment
requiresApprovalbooleanNofalseIndicates if promotion to this environment requires approval

Status Fields

FieldTypeDefaultDescription
observedGenerationinteger0The 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: development
targetEnvironmentRefs:
- name: staging
requiresApproval: false
- sourceEnvironmentRef: staging
targetEnvironmentRefs:
- name: production
requiresApproval: true

Annotations

DeploymentPipelines support the following annotations:

AnnotationDescription
openchoreo.dev/display-nameHuman-readable name for UI display
openchoreo.dev/descriptionDetailed description of the deployment pipeline
  • Project - Projects reference deployment pipelines for their promotion workflows
  • Environment - Environments that are connected through promotion paths
  • Organization - Contains deployment pipeline definitions