Skip to main content
Version: v1.0.0-rc.1 (pre-release)

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​

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

PromotionPath​

FieldTypeRequiredDefaultDescription
sourceEnvironmentRefEnvironmentRefYes-Reference to the source environment for promotion
targetEnvironmentRefs[TargetEnvironmentRef]Yes-List of target environments for promotion

EnvironmentRef​

FieldTypeRequiredDefaultDescription
kindstringNoEnvironmentKind of the environment resource
namestringYes-Name of the environment resource

TargetEnvironmentRef​

FieldTypeRequiredDefaultDescription
kindstringNoEnvironmentKind of the environment resource
namestringYes-Name of the target environment

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:
name: development
targetEnvironmentRefs:
- name: staging
- sourceEnvironmentRef:
name: staging
targetEnvironmentRefs:
- name: production

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