[DATABASE] MariaDB de-clustering

Adjust chart behavior in case only one mariadb instance is present and replication is disabled.

Change-Id: Ifa540580cf9d5755b83dbb949555ec814dda2744
This commit is contained in:
Markin, Sergiy (sm515x) 2022-03-14 13:49:33 -05:00 committed by Chris Wedgwood
parent 81179cb2e3
commit 848f392b3a
3 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v10.2.31
description: OpenStack-Helm MariaDB
name: mariadb
version: 0.2.12
version: 0.2.13
home: https://mariadb.com/kb/en/
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
sources:

View File

@ -36,7 +36,7 @@ mysql_status_query () {
if ! $MYSQL -e 'select 1' > /dev/null 2>&1 ; then
exit 1
fi
{{- if gt .Values.pod.replicas.server 1.0 }}
if [ "x$(mysql_status_query wsrep_ready)" != "xON" ]; then
# WSREP says the node can receive queries
exit 1
@ -56,3 +56,4 @@ if [ "x$(mysql_status_query wsrep_local_state_comment)" != "xSynced" ]; then
# WSREP not synced
exit 1
fi
{{- end }}

View File

@ -28,4 +28,5 @@ mariadb:
- 0.2.10 Fix Python exceptions
- 0.2.11 Enhance mariadb backup
- 0.2.12 Remove set -x
- 0.2.13 Adjust readiness.sh in single node and no replication case
...