|
| 1 | +# 25.10 LTS migration guide |
| 2 | + |
| 3 | +This guide illustrates, step by step, how to migrate to `25.10.0` from previous versions. |
| 4 | + |
| 5 | + |
| 6 | +- The Galera data-plane must be updated to the `25.10.0` version. |
| 7 | + |
| 8 | + |
| 9 | +If you want the operator to automatically update the data-plane (i.e. init and agent containers), you can set `updateStrategy.autoUpdateDataPlane=true` in your `MariaDB` resources: |
| 10 | +```diff |
| 11 | +apiVersion: enterprise.mariadb.com/v1alpha1 |
| 12 | +kind: MariaDB |
| 13 | +metadata: |
| 14 | + name: mariadb-galera |
| 15 | +spec: |
| 16 | + updateStrategy: |
| 17 | ++ autoUpdateDataPlane: true |
| 18 | +``` |
| 19 | + |
| 20 | +Alternatively, you can also do this manually: |
| 21 | + |
| 22 | +```diff |
| 23 | +apiVersion: enterprise.mariadb.com/v1alpha1 |
| 24 | +kind: MariaDB |
| 25 | +metadata: |
| 26 | + name: mariadb-galera |
| 27 | +spec: |
| 28 | + galera: |
| 29 | + agent: |
| 30 | +- image: docker.mariadb.com/mariadb-enterprise-operator:1.0.0 |
| 31 | ++ image: docker.mariadb.com/mariadb-enterprise-operator:25.10.0 |
| 32 | + initContainer: |
| 33 | +- image: docker.mariadb.com/mariadb-enterprise-operator:1.0.0 |
| 34 | ++ image: docker.mariadb.com/mariadb-enterprise-operator:25.10.0 |
| 35 | +``` |
| 36 | + |
| 37 | +- Then, you may proceeed to update the operator. If you are using __Helm__: |
| 38 | + |
| 39 | +Upgrade `mariadb-enterprise-operator-crds` to `25.10.0`: |
| 40 | +```bash |
| 41 | +helm repo update mariadb-enterprise-operator |
| 42 | +helm upgrade --install mariadb-enterprise-operator-crds mariadb-enterprise-operator/mariadb-enterprise-operator-crds --version 25.10.0 |
| 43 | +``` |
| 44 | + |
| 45 | +Upgrade `mariadb-enterprise-operator` to `25.10.0`: |
| 46 | +```bash |
| 47 | +helm repo update mariadb-enterprise-operator |
| 48 | +helm upgrade --install mariadb-enterprise-operator mariadb-enterprise-operator/mariadb-enterprise-operator --version 25.10.0 |
| 49 | +``` |
| 50 | + |
| 51 | +- If you are on __OpenShift__: |
| 52 | + |
| 53 | + |
| 54 | +Update the `startingCSV` in your `Subscription` object: |
| 55 | +```yaml |
| 56 | +apiVersion: operators.coreos.com/v1alpha1 |
| 57 | +kind: Subscription |
| 58 | +metadata: |
| 59 | + name: mariadb-enterprise-operator |
| 60 | + namespace: openshift-operators |
| 61 | +spec: |
| 62 | + channel: stable |
| 63 | + installPlanApproval: Manual |
| 64 | + name: mariadb-enterprise-operator |
| 65 | + source: certified-operators |
| 66 | + sourceNamespace: openshift-marketplace |
| 67 | + startingCSV: mariadb-enterprise-operator.v25.10.0 |
| 68 | +``` |
| 69 | +
|
| 70 | +As part of the 25.10 LTS release, we have introduced new [release channels](https://mariadb.com/docs/tools/mariadb-enterprise-operator/installation/openshift#release-channels). Consider switching to the `stable-v25.10` if you are willing to stay in the `25.10.x` version: |
| 71 | + |
| 72 | +```yaml |
| 73 | +apiVersion: operators.coreos.com/v1alpha1 |
| 74 | +kind: Subscription |
| 75 | +metadata: |
| 76 | + name: mariadb-enterprise-operator |
| 77 | + namespace: openshift-operators |
| 78 | +spec: |
| 79 | + channel: stable-v25.10 |
| 80 | + installPlanApproval: Automatic |
| 81 | + name: mariadb-enterprise-operator |
| 82 | + source: certified-operators |
| 83 | + sourceNamespace: openshift-marketplace |
| 84 | +``` |
| 85 | + |
| 86 | +- If you previously set `updateStrategy.autoUpdateDataPlane=true`, you may consider reverting the changes once the upgrades have finished to avoid unexpected updates: |
| 87 | + |
| 88 | +```diff |
| 89 | +apiVersion: enterprise.mariadb.com/v1alpha1 |
| 90 | +kind: MariaDB |
| 91 | +metadata: |
| 92 | + name: mariadb-galera |
| 93 | +spec: |
| 94 | + updateStrategy: |
| 95 | ++ autoUpdateDataPlane: false |
| 96 | +- autoUpdateDataPlane: true |
| 97 | +``` |
| 98 | + |
| 99 | +{% include "https://app.gitbook.com/s/SsmexDFPv2xG2OTyO5yV/~/reusable/pNHZQXPP5OEz2TgvhFva/" %} |
| 100 | + |
| 101 | + |
| 102 | +{% @marketo/form formId="4316" %} |
0 commit comments