From 4e1d7b67f9d169261fe769016398f53ad31f1313 Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Wed, 26 Sep 2018 03:34:06 +0000 Subject: [PATCH] [MariaDB] Allow for stable upgrades Using a random bootstrap filename means any upgrade (even without changes) causes MariaDB to churn and restart. Change-Id: Ieaf577e413f8d672d24bf42c90b6110b52e542f0 --- mariadb/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mariadb/templates/statefulset.yaml b/mariadb/templates/statefulset.yaml index f8683c35b..d540c09be 100644 --- a/mariadb/templates/statefulset.yaml +++ b/mariadb/templates/statefulset.yaml @@ -81,7 +81,7 @@ spec: - name: FORCE_RECOVERY value: {{ .Values.force_recovey | quote }} - name: BOOTSTRAP_FILE - value: {{ printf "/tmp/%s.sql" (randAlphaNum 8) }} + value: "/tmp/bootstrap.sql" - name: MARIADB_REPLICAS value: {{ .Values.pod.replicas.server | quote }} - name: WSREP_PORT