diff --git a/cmd/osctl/cmd/reset.go b/cmd/osctl/cmd/reset.go index 5836f163f..58f4194f5 100644 --- a/cmd/osctl/cmd/reset.go +++ b/cmd/osctl/cmd/reset.go @@ -37,5 +37,6 @@ var resetCmd = &cobra.Command{ func init() { 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) } diff --git a/docs/osctl/osctl_reset.md b/docs/osctl/osctl_reset.md index c3c80b6c6..cf81bcae9 100644 --- a/docs/osctl/osctl_reset.md +++ b/docs/osctl/osctl_reset.md @@ -16,6 +16,7 @@ osctl reset [flags] ``` --graceful if true, attempt to cordon/drain node and leave etcd (if applicable) (default true) -h, --help help for reset + --reboot if true, reboot the node after resetting (default is to shutdown) (default true) ``` ### Options inherited from parent commands