Add defaultReplication command line parameter from CR value
This commit is contained in:
parent
35eb4debb5
commit
aed8db644d
|
@ -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, " ")
|
||||||
|
|
Loading…
Reference in New Issue