server.upgrade: the store's upgrade before the rollout (K-C9) #17

Merged
jcoffey-dev merged 1 commits from feat/upgrade-hooks into main 2026-11-18 20:47:16 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev d4b9c184e0 server.upgrade: the store's upgrade before the rollout (K-C9)
ci / chart (pull_request) Successful in 1m21s
Before an upgrade or rollback rolls out, a Job on the new image asks the
server what it does to the store (--upgrade-plan). A layout change waits
for upgrade.acknowledgeLayout to name its version: the 27.1 crossing and
any later one. When a step can't run with older pods up, the Job scales
the server Deployments to 0 and waits for their pods, which a rolling
update can't do; then --upgrade-store upgrades the store and Helm rolls
the new pods out at their usual sizes.

The scaling rights belong to a ServiceAccount and Role that exist only
while the hook runs, limited to this release's server Deployments. The
script (files/upgrade.sh) uses only sh, sed and curl, which the image
has.
2026-11-18 13:40:19 -07:00