etcdmain: support experimental-corrupt-check-time flag
This commit is contained in:
@ -216,6 +216,9 @@ func newConfig() *config {
|
|||||||
// auth
|
// auth
|
||||||
fs.StringVar(&cfg.AuthToken, "auth-token", cfg.AuthToken, "Specify auth token specific options.")
|
fs.StringVar(&cfg.AuthToken, "auth-token", cfg.AuthToken, "Specify auth token specific options.")
|
||||||
|
|
||||||
|
// experimental
|
||||||
|
fs.DurationVar(&cfg.ExperimentalCorruptCheckTime, "experimental-corrupt-check-time", cfg.ExperimentalCorruptCheckTime, "Duration of time between cluster corruption check passes.")
|
||||||
|
|
||||||
// ignored
|
// ignored
|
||||||
for _, f := range cfg.ignored {
|
for _, f := range cfg.ignored {
|
||||||
fs.Var(&flags.IgnoredFlag{Name: f}, f, "")
|
fs.Var(&flags.IgnoredFlag{Name: f}, f, "")
|
||||||
|
@ -179,5 +179,9 @@ profiling flags:
|
|||||||
auth flags:
|
auth flags:
|
||||||
--auth-token 'simple'
|
--auth-token 'simple'
|
||||||
Specify a v3 authentication token type and its options ('simple' or 'jwt').
|
Specify a v3 authentication token type and its options ('simple' or 'jwt').
|
||||||
|
|
||||||
|
experimental flags:
|
||||||
|
--experimental-corrupt-check-time '0s'
|
||||||
|
duration of time between cluster corruption check passes.
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user