Component ยท Shared or other
dev-deploy-pipeline
CHOREO CLOUD Pipeline Choreo Cloud service
What it is
dev-deploy-pipeline turns a new commit on the main branch of wso2cloud-deployment into a release for the dev environment. It creates frozen release records (ComponentReleases), points each component's ReleaseBinding at the newest one and commits the result back to main. Flux on dev then rolls it out.
Like a shop manager who photographs the shelf after each delivery and files the photo, so that later anyone can say exactly what was on sale that day.
Why it exists
Dev should follow main automatically. Freezing each component's definition and image into a release record makes later promotions and rollbacks refer to something exact.
How it works
- Any push to main of wso2cloud-deployment fires the dev-sync sensor, which creates a WorkflowRun of the dev-deploy-pipeline ClusterWorkflow. The bump commit made by the build-pipeline is one such push.
- The run reports a pending GitHub check named 'WSO2Cloud Dev Deployment' on the commit.
- If component, workload or platform definition files changed, it generates new ComponentRelease files with the OpenChoreo CLI (occ componentrelease generate) under controlplane/common/domains/platform/component-releases/ and keeps the latest two per component.
- It edits each component's release-binding.yaml to name the new release (a ReleaseBinding says which release an environment runs), updates the Kustomize files and commits and pushes to main.
- It then comments on every pull request in the pushed range to say its change has propagated to development.
- Flux on dev tracks main, so it sees the new commit and rolls out new pods.
Key facts
- ClusterWorkflow
- dev-deploy-pipeline
- Sensor
- dev-sync
- Started by
- Any push to main of wso2cloud-deployment
- GitHub check
- WSO2Cloud Dev Deployment
- Output
- ComponentRelease and ReleaseBinding commits on main
- Releases kept
- The latest two per component
- Namespace
- cicd
Talks to (1)
- deploys to Choreo Cloud environment: dev dev Flux rolls out the new revisioncommit to main
Used by (1)
- receives telemetry from wso2cloud-deployment (GitOps source of truth) triggers dev-sync sensorpush to main
Inside and around
Contains: ComponentRelease and ReleaseBinding