What you will learn
- Practise the decisions of a real hotfix on a worked scenario with placeholder names
- Pick the right commit, tag and repository, and see what each wrong choice costs
- Say what the CR needs, who approves the pin move and how you check the result
- Say why the fix must be backported
Before you start
- The image hotfix, step by step Not started In progress Done
On this page
The last lesson told the hotfix story. Now you take the driver’s seat. The scenario is made up: Agent Manager on an environment returns an error for one operation. The fix is already merged on main and works on dev. Customers on production are waiting. You must move exactly that fix to stage and then to production, without moving anything else.
How the walkthrough works
The walkthrough has eleven steps and eight decisions. Each step says who acts, where they work, what you would see and what goes wrong. At each decision you pick an answer. A wrong answer does not end the exercise. It shows you what would happen and why.
All names are placeholders, such as <stage-commit>, <source-commit> and vhotfix-<YYYYMMDD>-<n>. No real tags or commits appear. The commands shown are read-only ones that you can copy, and the ones that change something are marked and left for you to run on your own clone.
Before you start: three questions to ask yourself
- Which commit does the environment run today? You read it from the pin, and then from the image tag in the service’s workload file. Not from the tip of
main. - Which repository is my fix in? The fix is made where the broken code lives. For Agent Manager code that is the agent platform repository.
- Which number is next? The count of
vhotfixtags is kept in each repository, and a built tag is not moved.
Decisions you will meet
- Where you read the commit that stage runs.
- Which commit your branch starts from.
- What you do when today’s date already has a tag.
- What a tag pushed to the deployment repository builds.
- What the SRE team needs from your CR.
- What the pin pull request changes and who approves it.
- Whether a bot comment proves the hotfix is running.
- What comes after stage.
Your turn
Open Try it and work through the walkthrough to the end. When you reach the last decision, check that you can answer these without scrolling back: where is the base commit read, which repository gets the tag, who approves the pull request that moves the pin, and what must happen after production.
Recap
- A hotfix starts from the commit the environment runs, read from the pin and the image tag, not from the tip of
main. - The fix is cherry-picked and tagged in the repository where the broken code lives. The tag shape is
vhotfix-<date>-<n>, and a built tag is not moved. - A CR with the full image references goes to the SRE team. A QA representative and a Platform Engineer approve the pull request that moves the pin.
- A bot comment says the pin moved. The dashboard shows whether Flux applied it.
- Stage first, then production, and last the backport to
main.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)