Versions and Upgrades
Crewlet is released as numbered versions: a v* tag publishes the binaries,
the container image and their signatures and build provenance
(Installation). This page is for
whoever runs Crewlet: what a version number tells you, which versions can run
together, and how to pin the one you run.
What a version number says
Section titled “What a version number says”A release is v and a semantic version,
vMAJOR.MINOR.PATCH, and every name of it is that same string: the Git tag,
the image tag (ghcr.io/crewlet/crewlet:v0.2.0), the Go module version, and
what the engine reports:
$ crewlet versioncrewlet v0.2.0 (<the commit the release was built from>)- The patch number moves for fixes.
- The minor number moves for features. While the major number is
0, as it is today, it also moves for a change that breaks something an earlier release shipped, and that release’s notes say what to change before you upgrade. - A pre-release (
v0.3.0-rc.1) is a candidate. It never becomes GitHub’s “Latest” release or thelatestimage tag, so you only run one by naming it.
Every release is the next number after the one before it; nothing is skipped or reused. The release notes on each GitHub Release list every change since the previous one.
ghcr.io/crewlet/crewlet:main and a binary built from a checkout are not
releases: they report main-<commit> or their module version, and nothing
below is promised for them.
Which versions run together
Section titled “Which versions run together”Two consecutive releases, N and N-1, run side by side, and N-1 upgrades to N in place.
- In one company’s fleet, nodes of N-1 and N serve together while you replace them one at a time: that is a rolling upgrade (Running a Fleet). When a release adds a field to a request one node routes to another, its notes say to upgrade the data nodes first.
- Across companies, an operator who runs several companies may keep some on N-1 while moving others to N.
- N reads everything N-1 wrote: its store, its logs, its files, and the configuration N-1 accepted, except a change the release notes name as a break.
What is not promised:
- Skipping a release. To go from N-2 to N, upgrade to N-1 first.
- Going back once N has written. Take a backup before you upgrade (Backups & Restore); restoring it is the way back.
- Anything about
main.
Pin the version you run
Section titled “Pin the version you run”Name an exact release everywhere you deploy, never latest or main. A
deployment that names latest upgrades whenever it pulls, which can skip a
release and so leave the promise above.
- The container image:
ghcr.io/crewlet/crewlet:v0.2.0, or its digest (ghcr.io/crewlet/crewlet@sha256:...) to hold the exact bytes you verified. A digest never moves; a tag is moved only by a re-run of its own release. - A binary: the archive of that release, verified as Installation shows.
go install:go install github.com/crewlet/crewlet/cmd/[email protected].- On Kubernetes with
crewlet-operator: an
EngineClass’s
spec.engine.imagenames the image by tag or by digest. WithallowVersionOverrideon a class whose image is named by tag, a Company’sspec.runtime.versionchooses its own release tag; the operator refuses a move to an older release than one the company has run, and itspreflight: Requiredruns the new release’screwlet validateon the company’s configuration before any pod moves. Its installing guide has the detail.
Upgrade
Section titled “Upgrade”- Read the release notes of every release between yours and the target. A break names what to change first.
- Take a backup (Backups & Restore).
- Verify the new release’s signature or provenance (Installation).
- Change the pin to the next release and roll the nodes one at a time,
waiting for each node’s
/ready(Running a Fleet). - To go further, repeat from the next release.
Before step 4, run the new binary’s crewlet validate on your configuration
files: it tells you whether the new release accepts them.
Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.