mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-23 23:51:11 +02:00
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:
parent
63ca83a02c
commit
8a3a76f73e
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user