mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
Merge pull request #183 from SpandaCloudPlatform/V5.0
[ADD] Initializing the cluster allows to ignore system checks
This commit is contained in:
commit
0d757c6afc
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user