Skip to main content

Environment

An Environment is a first-class stage in the delivery lifecycle — development, staging, production, or whatever your org uses. It is not just a label: an Environment maps to a data plane, the cluster where workloads for that stage actually run. That mapping is its main job; it also marks whether the stage is production, which downstream governance keys off.

KindEnvironment (short: env)
API groupopenchoreo.dev/v1alpha1
ScopeNamespaced
AudiencePlatform engineer
Maps toDataPlane (spec.dataPlaneRef)
Wired byDeploymentPipeline (promotion paths), ReleaseBinding (deploy target)

Key spec fields

FieldDescription
spec.dataPlaneRef.kindDataPlane or ClusterDataPlane
spec.dataPlaneRef.nameThe data plane this stage runs on
spec.isProductionMarks the stage as production for governance/conditions
metadata.annotations[openchoreo.dev/display-name]Human-readable name

Because the mapping is explicit, you can shape topology freely — share one data plane between development and staging, give production a dedicated HA plane, or point eu-production and us-production at regional planes.

Create in the portal

  1. Open Create…Platform ResourcesEnvironment.
  2. Name the stage (e.g. development), choose the data plane it maps to, and mark whether it's production.
  3. Click Create. Wire it into a Deployment pipeline to make it a promotion target.

Prefer YAML/GitOps? See the Example below, or Environments and pipelines.

Example

apiVersion: openchoreo.dev/v1alpha1
kind: Environment
metadata:
name: development
namespace: fedshi
annotations:
openchoreo.dev/display-name: "Development"
spec:
dataPlaneRef:
kind: ClusterDataPlane
name: default
isProduction: false

See also