|
This is unreleased documentation for SBOM Scanner 0.14-dev. |
Upgrade path
Versioning
SBOM Scanner uses semantic versioning. A
version follows the MAJOR.MINOR.PATCH pattern. The supported version is
the latest release.
One deliverable follows this version: the sbomscanner Helm chart, in its
appVersion field. The controller, the storage API server, the worker,
and the MCP server images carry this version as their tag. All four images
run the same version.
Helm chart versions
A Helm chart has two version fields. The appVersion field holds the
SBOM Scanner version described above. The version field is the
version of the chart itself. It also follows semantic versioning, and it
describes changes to the chart templates and to values.yaml.
For SBOM Scanner, the two fields move together.
Components outside the version
Two components run with SBOM Scanner and follow their own versions:
-
NATS. The chart ships it as a subchart. A chart upgrade can move the NATS version, and the chart
versionfield records such a change. -
The CloudNativePG operator and the PostgreSQL image. You install and upgrade the operator yourself. The chart creates only the
Clusterresource that the operator reconciles. Read the release notes of the operator before you upgrade it, because it owns the database that holds every scan result.
Upgrade paths
You can upgrade across several PATCH versions in one operation. You
cannot upgrade across more than one MINOR or MAJOR version in one
operation.
For example, you can upgrade from 0.13.0 to 0.13.2 in one step. You
cannot upgrade from 0.12.0 to 0.14.0 in one step. Upgrade from
0.12.0 to 0.13.x first, then from 0.13.x to 0.14.0. To move
across a MAJOR version, apply every MINOR version between the two.
Upgrade order
Upgrade the sbomscanner Helm chart. There is no other
SBOM Scanner component to upgrade. The chart upgrades the
controller, the storage API server, the worker, the node scan worker, and
the MCP server together.
The storage API server runs the database migrations at startup, in its
init container. Each storage replica runs them, and they are safe to run
more than once. A new version that changes the database schema applies
the change during this step. Back up the database before you upgrade a
MINOR version. See
Back up
the database.
The scan messages that a worker has not yet processed stay in NATS during the upgrade. A new worker picks them up when it starts.