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
c611023c
Unverified
Commit
c611023c
authored
5 years ago
by
黄润豪
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #678 from fanyangyang/fix/coding/717
check etcd args and append
parents
d5cd8968
5397b493
main
Develop-V5.X
V5.2
V5.3
V5.4
dependabot/npm_and_yarn/webcli/js/xterm-4.5.0
feat-containerd
feat-containerd1
feature-helmapp
feature-helmapp-2
feature-k8s
fixbug-560
master
mesh-start
servicemonitor
zqhtest-containerd
v5.8.1-release
v5.8.0-release
v5.7.1-release
v5.7.0-release
v5.6.0-release
v5.5.0-release
v5.5.0-dind
v5.4.1-release
v5.4.0-release
v5.3.3-release
v5.3.2-release
v5.3.1-release
v5.3.0-release
v5.2.2-release
v5.2.1-release
v5.2.0-release
v5.2.0-beta2
v5.2.0-beta1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/monitor/option/option.go
+3
-0
cmd/monitor/option/option.go
cmd/mq/option/option.go
+3
-0
cmd/mq/option/option.go
cmd/webcli/option/option.go
+3
-0
cmd/webcli/option/option.go
with
9 additions
and
0 deletions
+9
-0
cmd/monitor/option/option.go
+
3
-
0
View file @
c611023c
...
...
@@ -136,6 +136,9 @@ func NewConfig() *Config {
//AddFlag monitor flag
func
(
c
*
Config
)
AddFlag
(
cmd
*
pflag
.
FlagSet
)
{
cmd
.
StringVar
(
&
c
.
EtcdEndpointsLine
,
"etcd-endpoints"
,
c
.
EtcdEndpointsLine
,
"etcd endpoints list."
)
cmd
.
StringVar
(
&
c
.
EtcdCaFile
,
"etcd-ca"
,
""
,
"etcd tls ca file "
)
cmd
.
StringVar
(
&
c
.
EtcdCertFile
,
"etcd-cert"
,
""
,
"etcd tls cert file"
)
cmd
.
StringVar
(
&
c
.
EtcdKeyFile
,
"etcd-key"
,
""
,
"etcd http tls cert key file"
)
cmd
.
StringVar
(
&
c
.
AdvertiseAddr
,
"advertise-addr"
,
c
.
AdvertiseAddr
,
"advertise address, and registry into etcd."
)
cmd
.
IntVar
(
&
c
.
CadvisorListenPort
,
"cadvisor-listen-port"
,
c
.
CadvisorListenPort
,
"kubelet cadvisor listen port in all node"
)
cmd
.
StringSliceVar
(
&
c
.
AlertManagerURL
,
"alertmanager-address"
,
c
.
AlertManagerURL
,
"AlertManager url."
)
...
...
This diff is collapsed.
Click to expand it.
cmd/mq/option/option.go
+
3
-
0
View file @
c611023c
...
...
@@ -54,6 +54,9 @@ func (a *MQServer) AddFlags(fs *pflag.FlagSet) {
fs
.
StringVar
(
&
a
.
LogLevel
,
"log-level"
,
"info"
,
"the mq log level"
)
fs
.
StringSliceVar
(
&
a
.
EtcdEndPoints
,
"etcd-endpoints"
,
[]
string
{
"http://127.0.0.1:2379"
},
"etcd v3 cluster endpoints."
)
fs
.
IntVar
(
&
a
.
EtcdTimeout
,
"etcd-timeout"
,
10
,
"etcd http timeout seconds"
)
fs
.
StringVar
(
&
a
.
EtcdCaFile
,
"etcd-ca"
,
""
,
"etcd tls ca file "
)
fs
.
StringVar
(
&
a
.
EtcdCertFile
,
"etcd-cert"
,
""
,
"etcd tls cert file"
)
fs
.
StringVar
(
&
a
.
EtcdKeyFile
,
"etcd-key"
,
""
,
"etcd http tls cert key file"
)
fs
.
StringVar
(
&
a
.
EtcdPrefix
,
"etcd-prefix"
,
"/mq"
,
"the etcd data save key prefix "
)
fs
.
IntVar
(
&
a
.
APIPort
,
"api-port"
,
6300
,
"the api server listen port"
)
fs
.
StringVar
(
&
a
.
RunMode
,
"mode"
,
"grpc"
,
"the api server run mode grpc or http"
)
...
...
This diff is collapsed.
Click to expand it.
cmd/webcli/option/option.go
+
3
-
0
View file @
c611023c
...
...
@@ -55,6 +55,9 @@ func NewWebCliServer() *WebCliServer {
func
(
a
*
WebCliServer
)
AddFlags
(
fs
*
pflag
.
FlagSet
)
{
fs
.
StringVar
(
&
a
.
LogLevel
,
"log-level"
,
"info"
,
"the webcli log level"
)
fs
.
StringSliceVar
(
&
a
.
EtcdEndPoints
,
"etcd-endpoints"
,
[]
string
{
"http://127.0.0.1:2379"
},
"etcd v3 cluster endpoints."
)
fs
.
StringVar
(
&
a
.
EtcdCaFile
,
"etcd-ca"
,
""
,
"etcd tls ca file "
)
fs
.
StringVar
(
&
a
.
EtcdCertFile
,
"etcd-cert"
,
""
,
"etcd tls cert file"
)
fs
.
StringVar
(
&
a
.
EtcdKeyFile
,
"etcd-key"
,
""
,
"etcd http tls cert key file"
)
fs
.
StringVar
(
&
a
.
Address
,
"address"
,
"0.0.0.0"
,
"server listen address"
)
fs
.
StringVar
(
&
a
.
HostIP
,
"hostIP"
,
""
,
"Current node Intranet IP"
)
fs
.
StringVar
(
&
a
.
HostName
,
"hostName"
,
""
,
"Current node host name"
)
...
...
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