Test Template on Staging¶
Validate Helm chart template changes in oep-stg before merging to master and affecting prod tenants.
Purpose¶
Safely test changes to apps/laravel/templates/ or chart defaults on staging only. Prod Applications remain on master.
When to use¶
- Template changes that need staging soak before prod promotion
- Changes to
values.yamldefaults - New chart features being trialled in staging
Steps¶
- Open a PR branch in
unipuka-infra-ops(e.g.feat/reverb-redis-broker-tune) - Make template changes on the branch
- In the ApplicationSet (
bootstrap/applicationsets/laravel.yaml), change theoep-stgelement'stargetRevisionfrommasterto your PR branch name - Open a small follow-up PR to merge ONLY the ApplicationSet
targetRevisionchange foroep-stgto master - Merge the follow-up PR - Argo CD now points
oep-stgApplication at your feature branch; prd Applications stay on master - Validate in
oep-stg- run smoke script:bash scripts/smoke.sh oep-stg - When validated: merge original PR to master, then revert
targetRevisionforoep-stgback tomaster
Rollback¶
Revert the targetRevision change in the ApplicationSet back to master. oep-stg reverts to master chart.
V&V¶
argocd app get oep-stg-laravelshowstargetRevision: feat/...(not master)argocd app get mansety-prd-laravelstill showstargetRevision: master- All oep-stg workloads healthy on the feature branch template