Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rainbond
Commits
7440fbe3
Unverified
Commit
7440fbe3
authored
6 years ago
by
ysicing
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update init.go
parent
b9101160
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grctl/cmd/init.go
+6
-0
grctl/cmd/init.go
with
6 additions
and
0 deletions
+6
-0
grctl/cmd/init.go
+
6
-
0
View file @
7440fbe3
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help