Skip to content

Release on the ticketing cluster

Two apps on the ticketing cluster have their own releases: spatio (SpatioViewAdmin, the new admin) and coreapi. The deployed version of each is the newTag in its overlay in ticket-iac, not the latest tag in the app repo.

Check the deployed versions

In a ticket-iac checkout:

grep newTag overlays/prod/*/kustomization.yaml

Expected (2026-11-24): overlays/prod/coreapi/kustomization.yaml shows prod-v0.0.4 and overlays/prod/spatioviewadmin/kustomization.yaml shows prod-v0.0.2.

App How it is released History
coreapi CI commits chore(ticketing): update coreapi to prod-vX.Y.Z [skip ci] to overlays/prod/coreapi/kustomization.yaml prod-v0.0.3, then prod-v0.0.4 (2026-11-12)
spatio update_tag:production, pressed by a person (below) prod-v0.0.1 (CI, 2026-11-12), prod-v0.0.2 (newTag written by hand in commit dc70778 instead of by the job, 2026-11-24)

The admin's proxy lives in the nginx config of the spatio image, so the route cutover needs spatio on prod-v0.0.2 or later.

Release spatio

The app is described in SpatioViewAdmin; its repo's release rules are the same as below.

  1. Check that the pipeline for the newest staging commit is green through sign:staging. A red lint job is fine.
  2. Choose the version and get it confirmed. While the version is 0.y.z, a breaking change bumps the minor number and everything else bumps the patch.
  3. In GitLab, merge staging into main: no squash, no rebase, and don't delete the branch.
  4. Tag the newest staging commit, not the merge commit:

    git fetch origin && git log --oneline -1 origin/staging
    git merge-base --is-ancestor origin/staging origin/main && echo "OK: staging is in main"
    git tag -a vX.Y.Z <SHA> -m "vX.Y.Z" && git push origin vX.Y.Z
    

    <SHA> is the commit the first command prints. Expected: OK: staging is in main, then the tag push. 5. A person presses update_tag:production in the tag pipeline. Never move, delete or reuse a pushed tag: ship the next patch instead. 6. Check that it is live, on ticket-node-1:

    kubectl get pods -n production | grep spatio
    kubectl get deploy spatio -n production -o jsonpath='{.spec.template.spec.containers[0].image}'
    

    Expected: 2 spatio pods Running, and the image ends in prod-vX.Y.Z.

If the pods show ImagePullBackOff, check that the prod-vX.Y.Z image is in Nexus. The nightly cleanup keeps only the newest staging image and every prod-vX.Y.Z, so press update_tag:production on the same day you tag.