Skip to content

Commit

Permalink
Merge pull request #4473 from ssup2/master
Browse files Browse the repository at this point in the history
helm: Use MYSQL_FLAVOR to set flavor instead of EXTRA_MY_CNF
  • Loading branch information
dkhenry authored Dec 20, 2018
2 parents a3143fe + 5fe0b66 commit 345d3bd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions helm/vitess/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,27 @@ nodeAffinity:
{{- define "mycnf-exec" -}}

if [ "$VT_DB_FLAVOR" = "percona" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mysql56.cnf
MYSQL_FLAVOR=Percona

elif [ "$VT_DB_FLAVOR" = "mysql" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mysql56.cnf
MYSQL_FLAVOR=MySQL56

elif [ "$VT_DB_FLAVOR" = "mysql56" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mysql56.cnf
MYSQL_FLAVOR=MySQL56

elif [ "$VT_DB_FLAVOR" = "maria" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mariadb.cnf
MYSQL_FLAVOR=MariaDB

elif [ "$VT_DB_FLAVOR" = "mariadb" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mariadb.cnf
MYSQL_FLAVOR=MariaDB

elif [ "$VT_DB_FLAVOR" = "mariadb103" ]; then
FLAVOR_MYCNF=/vt/config/mycnf/master_mariadb103.cnf
MYSQL_FLAVOR=MariaDB103

fi

export EXTRA_MY_CNF="$FLAVOR_MYCNF:/vtdataroot/tabletdata/report-host.cnf:/vt/config/mycnf/rbr.cnf"
export MYSQL_FLAVOR
export EXTRA_MY_CNF="/vtdataroot/tabletdata/report-host.cnf:/vt/config/mycnf/rbr.cnf"

{{ if . }}
for filename in /vt/userconfig/*.cnf; do
Expand Down

0 comments on commit 345d3bd

Please sign in to comment.