Component ยท Shared or other
manual-promote-environment
What it is
manual-promote-environment is the ClusterWorkflow the SRE team runs to move an environment to a newer state. It does not rebuild images or copy manifests. It opens a pull request that changes the commit pinned in the environment branch's base.yaml files. For stage and production nothing is changed directly: a CR (change request) is created and handed to the SRE team, who run it. The environment only changes when the pull request is merged.
Like moving a bookmark in a book: the pages never change, only the page that every reader of that copy is told to read.
Why it exists
Manifests live on main, and each environment branch only says which commit of main it follows. Moving that pin promotes the whole environment state to a commit that was tested, with the same images.
How it works
- A CR (change request) is created and handed to the SRE team. For dev to stage, the requester also gives the full commit hash from a PROMOTABLE Release Candidate card. For stage to prod, tests on stage must pass, or the product lead must approve in writing.
- The SRE team triggers the workflow in the OpenChoreo portal. sourceBranch and targetBranch default to main and stage. For stage to prod set sourceBranch to stage and targetBranch to prod. For dev to stage, sourceCommit must be that full hash, never HEAD.
- The workflow creates a branch named promote-<environment>-<timestamp> that changes only the base.yaml pointer files (control plane and data plane) on the target environment branch.
- It opens a pull request against that branch. As the README describes it, the Platform Engineering team reviews and merges it.
- After the merge Flux in the environment's clusters syncs the manifests from the pinned commit. The SRE checks the release-status dashboard for every cluster.
Key facts
- ClusterWorkflow
- manual-promote-environment
- Started by
- The SRE team, after a CR is handed over, never on a schedule
- Inputs
- sourceBranch, targetBranch, sourceCommit
- Branch created
- promote-<environment>-<timestamp>
- Images
- Not rebuilt on promotion
- Locking
- Runs share the lock gitops-repo-lock with hotfix deploys
- Namespace
- cicd
Talks to (2)
- sends telemetry to Promotion and hotfix PRs opens promote-<env>-<epoch> PR against the target env branchGitHub PR
- depends on Pointer promotion (no rebuild) implements pointer promotion
Used by (2)
- receives telemetry from release-candidate (promotion gate) only a PROMOTABLE SHA may be promoted to stagePROMOTABLE card with full SHA
- needed by Change request via GitHub issue and ServiceNow promotions are requested through CR issues that go to the SRE teamissue to SRE