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()