File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ create_default_cnf() {
153
153
echo ' [mysqld]' > $CFG
154
154
sed -i " /\[mysqld\]/a read_only=ON" $CFG
155
155
sed -i " /\[mysqld\]/a server_id=${SERVER_ID} " $CFG
156
+ sed -i " /\[mysqld\]/a bind_address=${POD_IP} " $CFG
156
157
sed -i " /\[mysqld\]/a admin-address=${POD_IP} " $CFG
157
158
sed -i " /\[mysqld\]/a report_host=${FQDN} " $CFG
158
159
sed -i " /\[mysqld\]/a report_port=3306" $CFG
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import (
9
9
"github.com/percona/percona-server-mysql-operator/pkg/mysql"
10
10
)
11
11
12
+ var (
13
+ GitCommit string
14
+ BuildTime string
15
+ )
16
+
12
17
const (
13
18
fullClusterCrashFile = "/var/lib/mysql/full-cluster-crash"
14
19
manualRecoveryFile = "/var/lib/mysql/sleep-forever"
@@ -22,6 +27,8 @@ func main() {
22
27
defer f .Close ()
23
28
log .SetOutput (f )
24
29
30
+ log .Printf ("starting bootstrap... GitCommit: %s BuildTime: %s" , GitCommit , BuildTime )
31
+
25
32
fullClusterCrash , err := fileExists (fullClusterCrashFile )
26
33
if err == nil && fullClusterCrash {
27
34
log .Printf ("%s exists. exiting..." , fullClusterCrashFile )
You can’t perform that action at this time.
0 commit comments