The HiveMQ Team is excited to announce the release of the HiveMQ Platform Operator for Kubernetes 2.4.0. With this release, you can install and upgrade the HiveMQ Platform Operator and HiveMQ Platform Helm charts with Helm 4 without field conflicts. The operator also makes rolling restarts smoother for your HiveMQ cluster and reduces its memory footprint on large Kubernetes clusters.
Highlights
- Reliable installations and upgrades with Helm 4. Both Helm charts now install and upgrade with Helm 4 without the
--force-conflictsflag. The improvement also applies to HiveMQ Platform custom resources that you migrated from HiveMQ Platform Operator 1.x.
Helm 4 Installs and Upgrades Without Conflicts
Helm 4 uses the Server-Side Apply feature of Kubernetes to create and update chart resources. With Server-Side Apply, Kubernetes records which client owns each field of a resource and rejects a change when another client owns the field.
In previous versions, the HiveMQ Platform Operator owned fields that the Helm charts also manage. The shared ownership affected installations with Helm 4 and upgrades of releases that you installed with Helm 4. In these cases, Helm reported an error similar to the following example:
Error: UPGRADE FAILED: ... Apply failed with 2 conflicts: conflicts with "hivemq-controller" with subresource "status":
- .metadata.labels.app.kubernetes.io/version
- .metadata.labels.helm.sh/chartHow it works
HiveMQ Platform Operator 2.4.0 changes three behaviors:
- Chart labels of the HiveMQ Platform. The operator no longer owns the chart labels of the HiveMQ Platform custom resource. A status update of the operator now contains only the status of the custom resource. On Kubernetes 1.35 and older, earlier status updates also registered the operator as an owner of the chart labels. This ownership blocked each chart upgrade that changed the chart version. The operator releases this ownership with its first reconciliation after the upgrade.
- HiveMQ Platform CRD on install. The custom resource definition (CRD) in the HiveMQ Platform Operator Helm chart now matches the CRD that the Kubernetes API server stores. An installation with Helm 4 now succeeds when a CRD of the same version already exists. For example, when you install a second operator for another namespace or reinstall the operator. If the operator cannot apply the CRD at startup, for example because permissions are missing, the operator now stops with an error. In previous versions, the operator continued to run with an outdated CRD.
- Field ownership and status fields from HiveMQ Platform Operator 1.x. The operator removes the field ownership and the deprecated status fields of HiveMQ Platform Operator 1.x. The cleanup applies to each HiveMQ Platform custom resource that you created while an operator of version 1.x was active. The entries from version 1.x blocked chart upgrades that changed the
extensionslist and caused Helm to wait indefinitely for the custom resource. The operator removes the entries once, during the first reconciliation, without a rolling restart.
How it helps
- No manual cleanup. During the first reconciliation, the operator corrects the field ownership of your existing HiveMQ Platform custom resources. The correction includes custom resources that you migrated from HiveMQ Platform Operator 1.x. Your next Helm 4 upgrade of the HiveMQ Platform Helm chart then succeeds without
--force-conflicts,--server-side=false, or manual patches of the HiveMQ Platform status. - Install more operators. You can install additional HiveMQ Platform Operators for other namespaces, or reinstall an operator, with Helm 4 without
--skip-crds.
Helm 4 still reports a conflict in one case: the CRD in the Kubernetes cluster and the CRD in the Helm chart have different versions. This conflict is intentional and prevents an older Helm chart from overwriting a newer CRD. In this case, install the Helm chart with the --skip-crds flag. At startup, the operator applies its own CRD. For more information, see the Upgrade Guide.
Additional Features and Improvements
HiveMQ Platform Operator for Kubernetes
- Java4Shell (CVE-2026-114938) fixed in the operator. Java4Shell is a vulnerability in the Java runtime that can let an attacker run code on the host. The updated operator image now contains Temurin 25.0.5.1, a Java runtime with the fix, for amd64 and arm64. To apply the fix, upgrade the operator to version 2.4.0. The operator requires no further action. This release does not change the HiveMQ Enterprise MQTT Broker image that the HiveMQ nodes run. For the mitigation of the HiveMQ Platform, see the HiveMQ Security Notice for CVE-2026-114938.
- Smoother rolling restarts. A rolling restart now restarts the HiveMQ nodes in the order in which they became ready, the newest node first and the oldest node last. The new order reduces disruptions in the cluster management of the HiveMQ Enterprise MQTT Broker during the restart.
- Lower memory usage and API server load in large clusters. The operator now caches only the ConfigMaps and Secrets that a HiveMQ Platform custom resource references. The cache stores content hashes in place of full objects. In shared Kubernetes clusters with many ConfigMaps and Secrets, the change reduces the heap usage of the operator and the load on the Kubernetes API server at startup. Changes to referenced ConfigMaps and Secrets are detected as before.
Get Started Today
To get started with the new HiveMQ Platform Operator, see our HiveMQ Platform Operator Quick Start Guide.
To update from a previous version of the HiveMQ Platform Operator for Kubernetes, you need to update your HiveMQ Platform custom resource definition (CRD). For step-by-step instructions, see our Upgrade Guide.
To learn more about our operator, see HiveMQ Platform Operator for Kubernetes.