mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
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:
1 parent
57b24b5b5c
commit
73eb276713
1 file changed
+9
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user