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:
Artem Chernyshev 2021-07-15 18:13:29 +03:00 committed by talos-bot
parent 4e9c5afb6d
commit 2e463348b2

View File

@ -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
}