mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-26 05:51:17 +01:00 
			
		
		
		
	Fixes #1666 1. Remove custom validation of Args, use cobra-provided validators. 2. Always use errors to stop the execution flow, don't rely on `log.Fatal` and `panic` for normal flows. This makes sure `defer` always has a chance to run, connection is shut down in a clean way. 3. Command `docs` is hidden, as it's not for users. 4. Global variable `globalCtx` is removed, `WithClient` is used to pass context to the command. 5. `setupClientE` renamed to `WithClient`, `setupClient` removed. 6. Code from `cmd/root.go` moved to `pkg/helpers` when possible. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			755 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			755 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| <!-- markdownlint-disable -->
 | |
| ## osctl restart
 | |
| 
 | |
| Restart a process
 | |
| 
 | |
| ### Synopsis
 | |
| 
 | |
| Restart a process
 | |
| 
 | |
| ```
 | |
| osctl restart <id> [flags]
 | |
| ```
 | |
| 
 | |
| ### Options
 | |
| 
 | |
| ```
 | |
|   -h, --help         help for restart
 | |
|   -k, --kubernetes   use the k8s.io containerd namespace
 | |
|   -c, --use-cri      use the CRI driver
 | |
| ```
 | |
| 
 | |
| ### Options inherited from parent commands
 | |
| 
 | |
| ```
 | |
|       --context string       Context to be used in command
 | |
|   -e, --endpoints strings    override default endpoints in Talos configuration
 | |
|   -n, --nodes strings        target the specified nodes
 | |
|       --talosconfig string   The path to the Talos configuration file (default "/home/user/.talos/config")
 | |
| ```
 | |
| 
 | |
| ### SEE ALSO
 | |
| 
 | |
| * [osctl](osctl.md)	 - A CLI for out-of-band management of Kubernetes nodes created by Talos
 | |
| 
 |