-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support graceful failover in CLI #3205
Conversation
tools/cli/domainUtils.go
Outdated
cli.StringFlag{ | ||
Name: FlagFailoverTimeoutWithAlias, | ||
Usage: "[Optional] Domain failover timeout in seconds. Default value: 60s", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably IntFlag
as the description says the value is in seconds? and default value "60" instead of "60s"?
tools/cli/domainCommands.go
Outdated
if c.String(FlagFailoverType) == gracefulFailoverType { | ||
failoverTimeout = &defaultFailoverTimeout | ||
if c.IsSet(FlagFailoverTimeout) { | ||
timeout := int32(c.Int(FlagFailoverTimeout)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timeout is defined as a StringFlag
in the other file.
What changed?
Add update domain operation set graceful failover timeout via CLI
Why?
Graceful failover will trigger from CLI.
How did you test it?
Local test
Potential risks
No risk as it is a pending feature