The Mondoo Operator version numbers are expressed as x.y.z
, where x
is the major version, y
is the minor version, and z
is the patch version, following Semantic Versioning standards. Our release approach ensures there are no breaking changes between two adjacent minor versions. For example, you can upgrade the Mondoo Operator from v0.2.15
to v0.3.0
without any manual actions. The Mondoo Operator automatically executes any required migration and/or cleanup steps.
You can skip Mondoo Operator patch versions, however we don't recommend skipping minor versions. For example, if you upgrade from v0.2.0
directly to v0.4.0
, the Mondoo Operator may not behave as expected, and you may leave behind unused resources in the cluster. Skipping a minor version may require manual actions to ensure the Mondoo Operator is fully functional.
WARNING: Never try to upgrade the Mondoo Operator by simply changing the tag for the Mondoo Operator container image.
Follow these steps for a smooth Mondoo Operator upgrade:
- Verify the Mondoo Operator version currently running in the cluster:
kubectl get deployments -n mondoo-operator -o jsonpath='{.items[*].spec.template.spec.containers[0].image}'
- Check the latest version of the Mondoo Operator on our Releases GitHub page.
Based on the version difference between your Mondo Operator and the latest release, follow the steps below.
If there is not more than one minor version difference between the installed Mondoo Operator and the latest release, apply the latest manifest to the cluster:
kubectl apply -f https://github.com/mondoohq/mondoo-operator/releases/latest/download/mondoo-operator-manifests.yaml
If there is more than one minor version difference between the installed Mondoo Operator and the latest release, you must apply the manifest files for each minor version between the two versions. For example, if the version installed is v0.2.0
and the latest version is v0.4.3
, you must install v0.3.0
. Follow these steps:
- Apply the manifest for
v0.3.0
(the version you skipped):kubectl apply -f https://github.com/mondoohq/mondoo-operator/releases/v0.3.0/download/mondoo-operator-manifests.yaml
- Wait until the new version of the Mondoo Operator is running and verify there are no errors in the operator log:
It's essential to check the logs and wait for the new version of the operator to run; directly upgrading to the next version can result in skipped internal upgrade procedures and unexpected behavior.
kubectl logs -n mondoo-operator deployment/mondoo-operator-controller-manager
- Apply the manifest for
v0.4.3
(the latest version):kubectl apply -f https://github.com/mondoohq/mondoo-operator/releases/latest/download/mondoo-operator-manifests.yaml
Adjust the steps above to fit your current situation. There may be multiple minor release versions between your installed version and the latest release. You must install each minor version independently, wait between each update to verify that the version installed properly and the log is error-free.