From 99b42b97ff2f1174d18dcfa7236001230b736898 Mon Sep 17 00:00:00 2001 From: Valentin Ouvrard Date: Tue, 22 Aug 2023 13:20:35 +1100 Subject: [PATCH] feat(mariadb): bind on * instead of 0.0.0.0 --- pkg/config/config.go | 2 +- pkg/config/config_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index f92a8e3..f081afa 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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 diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 5a97681..6138134 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -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 @@ -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