[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:
parent
81179cb2e3
commit
848f392b3a
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v10.2.31
|
appVersion: v10.2.31
|
||||||
description: OpenStack-Helm MariaDB
|
description: OpenStack-Helm MariaDB
|
||||||
name: mariadb
|
name: mariadb
|
||||||
version: 0.2.12
|
version: 0.2.13
|
||||||
home: https://mariadb.com/kb/en/
|
home: https://mariadb.com/kb/en/
|
||||||
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
|
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -36,7 +36,7 @@ mysql_status_query () {
|
|||||||
if ! $MYSQL -e 'select 1' > /dev/null 2>&1 ; then
|
if ! $MYSQL -e 'select 1' > /dev/null 2>&1 ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
{{- if gt .Values.pod.replicas.server 1.0 }}
|
||||||
if [ "x$(mysql_status_query wsrep_ready)" != "xON" ]; then
|
if [ "x$(mysql_status_query wsrep_ready)" != "xON" ]; then
|
||||||
# WSREP says the node can receive queries
|
# WSREP says the node can receive queries
|
||||||
exit 1
|
exit 1
|
||||||
@ -56,3 +56,4 @@ if [ "x$(mysql_status_query wsrep_local_state_comment)" != "xSynced" ]; then
|
|||||||
# WSREP not synced
|
# WSREP not synced
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
{{- end }}
|
@ -28,4 +28,5 @@ mariadb:
|
|||||||
- 0.2.10 Fix Python exceptions
|
- 0.2.10 Fix Python exceptions
|
||||||
- 0.2.11 Enhance mariadb backup
|
- 0.2.11 Enhance mariadb backup
|
||||||
- 0.2.12 Remove set -x
|
- 0.2.12 Remove set -x
|
||||||
|
- 0.2.13 Adjust readiness.sh in single node and no replication case
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user