diff --git a/pkg/config/config.go b/pkg/config/config.go index 0a37cb5..f92a8e3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -36,7 +36,7 @@ func (c *ConfigFile) Marshal(podName, mariadbRootPassword string) ([]byte, error if !galera.Enabled { return nil, errors.New("MariaDB Galera not enabled, unable to render config file") } - tpl := createTpl("galera", `[mysqld] + tpl := createTpl("galera", `[mariadb] bind-address=0.0.0.0 default_storage_engine=InnoDB binlog_format=row diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 9cda375..5a97681 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -91,7 +91,7 @@ func TestConfigMarshal(t *testing.T) { podName: "mariadb-galera-0", mariadbRootPassword: "mariadb", //nolint:lll - wantConfig: `[mysqld] + wantConfig: `[mariadb] bind-address=0.0.0.0 default_storage_engine=InnoDB binlog_format=row @@ -138,7 +138,7 @@ wsrep_sst_method="rsync" podName: "mariadb-galera-1", mariadbRootPassword: "mariadb", //nolint:lll - wantConfig: `[mysqld] + wantConfig: `[mariadb] bind-address=0.0.0.0 default_storage_engine=InnoDB binlog_format=row