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

feat(mariadb): bind on * instead of 0.0.0.0 #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *ConfigFile) Marshal(podName, mariadbRootPassword string) ([]byte, error
return nil, errors.New("MariaDB Galera not enabled, unable to render config file")
}
tpl := createTpl("galera", `[mariadb]
bind-address=0.0.0.0
bind-address=*
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestConfigMarshal(t *testing.T) {
mariadbRootPassword: "mariadb",
//nolint:lll
wantConfig: `[mariadb]
bind-address=0.0.0.0
bind-address=*
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
Expand Down Expand Up @@ -139,7 +139,7 @@ wsrep_sst_method="rsync"
mariadbRootPassword: "mariadb",
//nolint:lll
wantConfig: `[mariadb]
bind-address=0.0.0.0
bind-address=*
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
Expand Down