mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 08:21:25 +01:00 
			
		
		
		
	fix: pass all logs through the options.Log method
Looks like I've missed some 🤦
Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									4e9c5afb6d
								
							
						
					
					
						commit
						2e463348b2
					
				| @ -75,7 +75,7 @@ func UpgradeTalosManaged(ctx context.Context, cluster UpgradeProvider, options U | ||||
| 
 | ||||
| 	if err = hyperkubeUpgradeDs(ctx, k8sClient.Clientset, kubeProxy, options); err != nil { | ||||
| 		if apierrors.IsNotFound(err) { | ||||
| 			fmt.Println("kube-proxy skipped as DaemonSet was not found") | ||||
| 			options.Log("kube-proxy skipped as DaemonSet was not found") | ||||
| 		} else { | ||||
| 			return fmt.Errorf("error updating kube-proxy: %w", err) | ||||
| 		} | ||||
| @ -142,8 +142,8 @@ func upgradeNodeConfigPatch(ctx context.Context, cluster UpgradeProvider, option | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	fmt.Printf(" > %q: machine configuration patched\n", node) | ||||
| 	fmt.Printf(" > %q: waiting for API server state pod update\n", node) | ||||
| 	options.Log(" > %q: machine configuration patched", node) | ||||
| 	options.Log(" > %q: waiting for API server state pod update", node) | ||||
| 
 | ||||
| 	var expectedConfigVersion string | ||||
| 
 | ||||
| @ -170,7 +170,7 @@ func upgradeNodeConfigPatch(ctx context.Context, cluster UpgradeProvider, option | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
| 	fmt.Printf(" < %q: successfully updated\n", node) | ||||
| 	options.Log(" < %q: successfully updated", node) | ||||
| 
 | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user