diff --git a/mariadb/Chart.yaml b/mariadb/Chart.yaml index a1e182184..c41832b19 100644 --- a/mariadb/Chart.yaml +++ b/mariadb/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v10.2.31 description: OpenStack-Helm MariaDB name: mariadb -version: 0.2.13 +version: 0.2.14 home: https://mariadb.com/kb/en/ icon: http://badges.mariadb.org/mariadb-badge-180x60.png sources: diff --git a/mariadb/templates/bin/_readiness.sh.tpl b/mariadb/templates/bin/_readiness.sh.tpl index 2a02eb828..fd14c7783 100644 --- a/mariadb/templates/bin/_readiness.sh.tpl +++ b/mariadb/templates/bin/_readiness.sh.tpl @@ -36,7 +36,8 @@ 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 gt (int .Values.pod.replicas.server) 1 }} if [ "x$(mysql_status_query wsrep_ready)" != "xON" ]; then # WSREP says the node can receive queries exit 1 @@ -56,4 +57,4 @@ if [ "x$(mysql_status_query wsrep_local_state_comment)" != "xSynced" ]; then # WSREP not synced exit 1 fi -{{- end }} \ No newline at end of file +{{- end }} diff --git a/releasenotes/notes/mariadb.yaml b/releasenotes/notes/mariadb.yaml index c7841bf97..97ce364d5 100644 --- a/releasenotes/notes/mariadb.yaml +++ b/releasenotes/notes/mariadb.yaml @@ -29,4 +29,5 @@ mariadb: - 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 + - 0.2.14 Fix comparison value ...