fix master name

Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
Howard Lau 2020-10-30 06:44:51 +00:00
parent a8c8fd65bc
commit 7b11a10862
No known key found for this signature in database
GPG Key ID: 5CCC55849E3CF8E2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func buildMasterStartupScript(m *seaweedv1.Seaweed) string {
command = append(command, fmt.Sprintf("-pulseSeconds=%d", *spec.PulseSeconds)) command = append(command, fmt.Sprintf("-pulseSeconds=%d", *spec.PulseSeconds))
} }
command = append(command, fmt.Sprintf("-ip=$(POD_NAME).%s-master", m.Name)) command = append(command, fmt.Sprintf("-ip=$(POD_NAME).%s-master-peer", m.Name))
command = append(command, fmt.Sprintf("-peers=%s", getMasterPeersString(m.Name, spec.Replicas))) command = append(command, fmt.Sprintf("-peers=%s", getMasterPeersString(m.Name, spec.Replicas)))
return strings.Join(command, " ") return strings.Join(command, " ")
} }