From 3cb5616b74df87d9df78756414a97ac04f86636d Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Sat, 28 Dec 2024 06:18:15 -0800 Subject: [PATCH] Fix err variable --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7c82ce103d..cb83e6a920 100644 --- a/main.go +++ b/main.go @@ -287,9 +287,9 @@ func main() { os.Exit(1) } - clientset, clientErr := kubernetes.NewForConfig(mgr.GetConfig()) + clientset, err := kubernetes.NewForConfig(mgr.GetConfig()) if err != nil { - setupLog.Error(clientErr, "failed to create kubernetes clientset") + setupLog.Error(err, "failed to create kubernetes clientset") } ctx := ctrl.SetupSignalHandler()