Merge pull request #183 from SpandaCloudPlatform/V5.0

[ADD] Initializing the cluster allows to ignore system checks
This commit is contained in:
barnettZQG 2019-01-09 17:22:53 +08:00 committed by GitHub
commit 0d757c6afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,11 @@ func NewCmdInit() cli.Command {
Usage: "Network type, support calico/flannel/midonet,default: calico", Usage: "Network type, support calico/flannel/midonet,default: calico",
Value: "calico", Value: "calico",
}, },
cli.StringFlag{
Name: "enable-check",
Usage: "enable check cpu/mem. default: enable/disable",
Value: "enable",
},
cli.StringFlag{ cli.StringFlag{
Name: "storage-args", Name: "storage-args",
Usage: "Stores mount parameters", Usage: "Stores mount parameters",
@ -238,6 +243,7 @@ func getConfig(c *cli.Context) map[string]string {
configs["NETWORK_TYPE"] = c.String("network") configs["NETWORK_TYPE"] = c.String("network")
configs["POD_NETWORK_CIDR"] = c.String("pod-cidr") configs["POD_NETWORK_CIDR"] = c.String("pod-cidr")
configs["STORAGE_ARGS"] = c.String("storage-args") configs["STORAGE_ARGS"] = c.String("storage-args")
configs["ENABLE_CHECK"] = c.String("enable-check")
configs["PULL_ONLINE_IMAGES"] = c.String("enable-online-images") configs["PULL_ONLINE_IMAGES"] = c.String("enable-online-images")
return configs return configs
} }