Merge pull request #58 from Kryptonite-RU/add-defaultreplication-cmdline

This commit is contained in:
Chris Lu 2022-01-26 10:10:12 -08:00 committed by GitHub
commit 6e550b8d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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