ON-PREM CHOREO CLOUD BOTH

What it is

manual-deploy-hotfix is the second half of a hotfix. The SRE team runs it by hand, after a CR (change request) is handed over, to move an environment onto hotfix images or onto a hotfix tag of wso2cloud-deployment. It prepares the change and opens a pull request against the environment branch. The environment only changes when that pull request is merged.

Like a pharmacist who has the replacement medicine ready but only hands it over once two people have signed the prescription.

Why it exists

Production and stage should never change without a reviewed pull request. A pointer change in Git also makes rollback simple: revert the pull request.

How it works

  • In the OpenChoreo portal the SRE triggers the manual-deploy-hotfix ClusterWorkflow and sets targetEnvironment to stage, prod, stage-v2, prod-v2 or prod-v2-eu.
  • Scenario 1 gives hotfixImages, full image references from the hotfix build. Scenario 2 gives gitopsTag and gitopsTagSha for a vhotfix tag of wso2cloud-deployment. They are mutually exclusive, and the run aborts if the tag does not point at the commit named.
  • For images it starts from the commit the environment pins today (read from base.yaml), writes the new tags into the workload.yaml files, regenerates the ComponentReleases and updates the ReleaseBindings. The result goes to a branch named hotfix-manifests-<tag>.
  • It opens a pull request on the environment branch that moves the Flux pin in base.yaml to the hotfix. The README says a QA representative and a Platform Engineer must both approve it.
  • After the merge Flux in each cluster rolls out the hotfix. The SRE then checks the release-status dashboard for every cluster.

Key facts

ClusterWorkflow
manual-deploy-hotfix
targetEnvironment values
stage, prod, stage-v2, prod-v2, prod-v2-eu
Scenario 1 inputs
hotfixImages
Scenario 2 inputs
gitopsTag and gitopsTagSha
Locking
Runs share the lock gitops-repo-lock with promotion
Policy
A hotfix goes to stage before prod, unless Senior Leadership approves otherwise in an emergency
After deploy
The developer must backport the fix to the main branch
Namespace
cicd

Talks to (2)

Used by (2)

Inside and around

Contains: hotfix-manifests-<tag> branch and deploy-side vhotfix tag