Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 3196a93

Browse files
committed
Use [mariadb] as group for MariaDB server
1 parent 307ecec commit 3196a93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (c *ConfigFile) Marshal(podName, mariadbRootPassword string) ([]byte, error
3636
if !galera.Enabled {
3737
return nil, errors.New("MariaDB Galera not enabled, unable to render config file")
3838
}
39-
tpl := createTpl("galera", `[mysqld]
39+
tpl := createTpl("galera", `[mariadb]
4040
bind-address=0.0.0.0
4141
default_storage_engine=InnoDB
4242
binlog_format=row

pkg/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestConfigMarshal(t *testing.T) {
9191
podName: "mariadb-galera-0",
9292
mariadbRootPassword: "mariadb",
9393
//nolint:lll
94-
wantConfig: `[mysqld]
94+
wantConfig: `[mariadb]
9595
bind-address=0.0.0.0
9696
default_storage_engine=InnoDB
9797
binlog_format=row
@@ -138,7 +138,7 @@ wsrep_sst_method="rsync"
138138
podName: "mariadb-galera-1",
139139
mariadbRootPassword: "mariadb",
140140
//nolint:lll
141-
wantConfig: `[mysqld]
141+
wantConfig: `[mariadb]
142142
bind-address=0.0.0.0
143143
default_storage_engine=InnoDB
144144
binlog_format=row

0 commit comments

Comments
 (0)