mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-11-03 18:01:29 +01:00 
			
		
		
		
	fix: fail quickly if upgrade-k8s is used with multiple nodes
Fixes #7283 Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
		
							parent
							
								
									51d931c470
								
							
						
					
					
						commit
						1fb29a56a8
					
				@ -46,6 +46,10 @@ func init() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func upgradeKubernetes(ctx context.Context, c *client.Client) error {
 | 
			
		||||
	if err := helpers.FailIfMultiNodes(ctx, "upgrade-k8s"); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := helpers.ClientVersionCheck(ctx, c); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user