etcdmain: support experimental-corrupt-check-time flag

This commit is contained in:
Anthony Romano 2017-08-19 02:40:35 -07:00
parent 1f734e0299
commit 86aeaad924
2 changed files with 7 additions and 0 deletions

View File

@ -216,6 +216,9 @@ func newConfig() *config {
// auth
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
for _, f := range cfg.ignored {
fs.Var(&flags.IgnoredFlag{Name: f}, f, "")

View File

@ -179,5 +179,9 @@ profiling flags:
auth flags:
--auth-token 'simple'
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.
`
)