mbgwp: run mariadb-upgrade when MariaDB starts on 11.8

11.4 to 11.8 is a major MariaDB upgrade. MARIADB_AUTO_UPGRADE has the
image's entrypoint migrate the datadir on start, as operator 26.10.1's
updateStrategy.mariadbAutoUpgradeEnabled would; set as env because CI's
schema for MariaDB doesn't know that field yet.
This commit is contained in:
Ruben Hensen committed 2026-10-27 10:37:57 +01:00
1 parent 57b24b5b5c
commit 73eb276713
1 file changed
+9
+9
View File
@@ -10,6 +10,15 @@ spec:
image: mariadb:11.8.9
imagePullPolicy: IfNotPresent
# Every X.Y is a major MariaDB release (11.4 to 11.8 too) and needs
# mariadb-upgrade on the datadir, or queries on mysql.proc fail. With this
# the image's entrypoint runs it on start; a no-op when there is nothing
# to migrate, so it stays. Operator 26.10.1 sets the same variable through
# updateStrategy.mariadbAutoUpgradeEnabled, but CI's MariaDB schema (datree
# catalog) doesn't know that field yet.
env:
- name: MARIADB_AUTO_UPGRADE
value: "true"
port: 3306