Unverified Commit 7440fbe3 authored by ysicing's avatar ysicing Committed by GitHub
Browse files

Update init.go

parent b9101160
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
......@@ -115,6 +115,11 @@ func NewCmdInit() cli.Command {
Usage: "Network type, support calico/flannel/midonet,default: calico",
Value: "calico",
},
cli.StringFlag{
Name: "enable-check",
Usage: "enable check cpu/mem. default: enable/disable",
Value: "enable",
},
cli.StringFlag{
Name: "storage-args",
Usage: "Stores mount parameters",
......@@ -238,6 +243,7 @@ func getConfig(c *cli.Context) map[string]string {
configs["NETWORK_TYPE"] = c.String("network")
configs["POD_NETWORK_CIDR"] = c.String("pod-cidr")
configs["STORAGE_ARGS"] = c.String("storage-args")
configs["ENABLE_CHECK"] = c.String("enable-check")
configs["PULL_ONLINE_IMAGES"] = c.String("enable-online-images")
return configs
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment