fix: add reboot flag to reset command

This exposes the reboot option for thee reset API by adding a `--reboot`
flag to the CLI.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
Andrew Rynhard 2020-02-19 05:12:41 -08:00
parent 63ca83a02c
commit 8a3a76f73e
2 changed files with 2 additions and 0 deletions

View File

@ -37,5 +37,6 @@ var resetCmd = &cobra.Command{
func init() { func init() {
resetCmd.Flags().BoolVar(&graceful, "graceful", true, "if true, attempt to cordon/drain node and leave etcd (if applicable)") resetCmd.Flags().BoolVar(&graceful, "graceful", true, "if true, attempt to cordon/drain node and leave etcd (if applicable)")
resetCmd.Flags().BoolVar(&reboot, "reboot", true, "if true, reboot the node after resetting (default is to shutdown)")
rootCmd.AddCommand(resetCmd) rootCmd.AddCommand(resetCmd)
} }

View File

@ -16,6 +16,7 @@ osctl reset [flags]
``` ```
--graceful if true, attempt to cordon/drain node and leave etcd (if applicable) (default true) --graceful if true, attempt to cordon/drain node and leave etcd (if applicable) (default true)
-h, --help help for reset -h, --help help for reset
--reboot if true, reboot the node after resetting (default is to shutdown) (default true)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands