ON-PREM CHOREO CLOUD BOTH

What it is

A ComponentRelease is a frozen copy of one component, for example agent-manager-service, at one moment. It holds the component type, the traits and the workload, including the exact container image. Files are named <component>-<YYYYMMDD>-<n>.yaml. A ReleaseBinding connects a component to one environment, and its releaseName field names the ComponentRelease that environment runs.

A ComponentRelease is a sealed shipping container. The ReleaseBinding is the label on the loading dock that says which container to unload.

Why it exists

A frozen release means an environment runs exactly what was built and tested, even while the live definitions keep changing. Moving forward or back is a matter of changing which release name the binding points at.

How it works

  • When a new image tag lands on main, dev-deploy-pipeline runs occ componentrelease generate (occ is the OpenChoreo command line) and writes a new ComponentRelease under controlplane/common/domains/platform/component-releases/<project>/.
  • The same pipeline edits the component's release-binding.yaml so releaseName points at the new file, then commits both to main.
  • It keeps the latest two releases for each component.
  • The binding's releaseName decides what runs. The image inside that ComponentRelease is what an environment gets, not the tag written in workload.yaml.
  • A hotfix therefore has to regenerate the ComponentRelease and repoint releaseName. A hotfix that only changes workload.yaml deploys nothing new.

Key facts

Release file name
<component>-<YYYYMMDD>-<n>.yaml
Selected by
releaseName in release-binding.yaml
Kept
latest two per component
Location
controlplane/common/domains/platform/component-releases/<project>/
Made by
dev-deploy-pipeline and manual-deploy-hotfix
Namespace
cloud-cp

Used by (1)

  • needed by manual-deploy-hotfix
    must repoint releaseName or nothing deploys
    occ componentrelease generate

Inside and around

Part of: dev-deploy-pipeline