|
@@ -139,6 +139,7 @@ type etcdProcessClusterConfig struct {
|
|
|
isPeerTLS bool
|
|
isPeerTLS bool
|
|
|
isPeerAutoTLS bool
|
|
isPeerAutoTLS bool
|
|
|
isClientAutoTLS bool
|
|
isClientAutoTLS bool
|
|
|
|
|
+ forceNewCluster bool
|
|
|
initialToken string
|
|
initialToken string
|
|
|
quotaBackendBytes int64
|
|
quotaBackendBytes int64
|
|
|
}
|
|
}
|
|
@@ -248,6 +249,9 @@ func (cfg *etcdProcessClusterConfig) etcdProcessConfigs() []*etcdProcessConfig {
|
|
|
"--initial-cluster-token", cfg.initialToken,
|
|
"--initial-cluster-token", cfg.initialToken,
|
|
|
"--data-dir", dataDirPath,
|
|
"--data-dir", dataDirPath,
|
|
|
}
|
|
}
|
|
|
|
|
+ if cfg.forceNewCluster {
|
|
|
|
|
+ args = append(args, "--force-new-cluster")
|
|
|
|
|
+ }
|
|
|
if cfg.quotaBackendBytes > 0 {
|
|
if cfg.quotaBackendBytes > 0 {
|
|
|
args = append(args,
|
|
args = append(args,
|
|
|
"--quota-backend-bytes", fmt.Sprintf("%d", cfg.quotaBackendBytes),
|
|
"--quota-backend-bytes", fmt.Sprintf("%d", cfg.quotaBackendBytes),
|