|
This is unreleased documentation for Admission Controller 1.30-next. |
Upgrade path
SUSE Security Admission Controller stack versioning
The Admission Controller project uses Semantic versioning to define
the "stack" version of all its components: the version follows the
MAJOR.MINOR.PATCH pattern. The supported version is the latest release.
The Admission Controller components that follow the rules for the "stack" version are:
-
kubewarden-crdschart, in their appVersion field. -
kubewarden-controllerchart, in their appVersion field. -
kubewarden-defaultschart, in their appVersion field. -
policy-serverimage tag for manually deployed ones. The resource for the default one is already managed by thekubewarden-defaultschart. -
kwctlbinary.
Stack version compatibility among components
The kubewarden-crds chart, kubewarden-controller chart,
kubewarden-defaults chart, any manually deployed policy-server image, and
kwctl should run the same MAJOR/MINOR versions. The PATCH version can
increase independently though.
Therefore, if the kubewarden-controller version running is 1.1.x, the
policy-servers and kwctl version in use should be 1.1.x as well.
Helm chart versions
Helm charts define the version field and the appVersion field. The
appVersion field informs of the Admission Controller "stack" version as mentioned
before. The version field also follows semantic
versioning and describes backwards-compatible changes in the chart templates
and values.yaml.
Upgrade paths
When upgrading components, you can upgrade multiple PATCH stack versions in a
single operation. However, the upgrade of multiple MAJOR or MINOR stack
versions in a single upgrade is not supported.
For example, you can upgrade components from version 1.1.10 to 1.1.nn in a
single upgrade. But the upgrade from 1.1.10 to 1.5.0 isn’t supported. In
these cases, you must upgrade individually to each MAJOR/MINOR version
between the two versions. Therefore, it’s necessary to upgrade 1.1.10 to
1.2.0 then 1.3.0 then 1.4.0 and finally to 1.5.0. To upgrade one
MAJOR version to another, you need to apply all the MINOR updates between
the two MAJOR versions.
Upgrade order
Admission Controller users should upgrade the stack starting with the kubewarden-crds
chart, then the kubewarden-controller chart. After that, upgrade the
policy-server (via kubewarden-defaults chart or bumping the images of
custom ones) and kwctl.
Downgrades
Downgrades are not supported, and Admission Controller doesn’t test them. Nevertheless, there’s a reasonable expectation that they should work.
SDKs, policies
Policy SDKs for the different languages and policies maintained by the Admission Controller team follow their own semantic versioning. Admission Controller supports the latest release. There is no need for an upgrade path for them, just a bump to the latest release.
Changes to the Admission Controller stack may mean that policies and SDKs receive updates to use the latest Admission Controller features. Admission Controller takes care to perform these updates in a backwards-compatible manner.
For example, a Admission Controller minor version adding support for Audit Scanner
(v1.7.0) means that policies gained a new spec.backgroundAudit field. This
is optional, backwards-compatible and set to true by default.