diff --git a/cmd/main.go b/cmd/main.go index 5e30a5726..0ecb745e4 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -78,9 +78,9 @@ func main() { } opts.BindFlags(flag.CommandLine) flag.Parse() - + println(1) ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) - + println(1) mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ Scheme: scheme, Metrics: metricsserver.Options{BindAddress: metricsAddr}, @@ -103,7 +103,7 @@ func main() { setupLog.Error(err, "unable to start manager") os.Exit(1) } - + println(1) if err = (&controller2.LinodeClusterReconciler{ Client: mgr.GetClient(), Recorder: mgr.GetEventRecorderFor("LinodeClusterReconciler"), @@ -113,6 +113,7 @@ func main() { setupLog.Error(err, "unable to create controller", "controller", "LinodeCluster") os.Exit(1) } + println(1) if err = (&controller2.LinodeMachineReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(), @@ -124,16 +125,17 @@ func main() { os.Exit(1) } // +kubebuilder:scaffold:builder - + println(1) if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { setupLog.Error(err, "unable to set up health check") os.Exit(1) } + println(1) if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil { setupLog.Error(err, "unable to set up ready check") os.Exit(1) } - + println(1) setupLog.Info("starting manager") if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil { setupLog.Error(err, "problem running manager")