Skip to content

Commit

Permalink
Remove automaxprocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs committed Jan 31, 2024
1 parent e4b65d5 commit e1a41be
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func main() {
}
opts.BindFlags(flag.CommandLine)
flag.Parse()

println(1)

Check failure on line 81 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))

println(1)

Check failure on line 83 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Metrics: metricsserver.Options{BindAddress: metricsAddr},
Expand All @@ -103,7 +103,7 @@ func main() {
setupLog.Error(err, "unable to start manager")
os.Exit(1)
}

println(1)

Check failure on line 106 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if err = (&controller2.LinodeClusterReconciler{
Client: mgr.GetClient(),
Recorder: mgr.GetEventRecorderFor("LinodeClusterReconciler"),
Expand All @@ -113,6 +113,7 @@ func main() {
setupLog.Error(err, "unable to create controller", "controller", "LinodeCluster")
os.Exit(1)
}
println(1)

Check failure on line 116 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if err = (&controller2.LinodeMachineReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Expand All @@ -124,16 +125,17 @@ func main() {
os.Exit(1)
}
// +kubebuilder:scaffold:builder

println(1)

Check failure on line 128 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up health check")
os.Exit(1)
}
println(1)

Check failure on line 133 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up ready check")
os.Exit(1)
}

println(1)

Check failure on line 138 in cmd/main.go

View workflow job for this annotation

GitHub Actions / go-analyse

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
setupLog.Error(err, "problem running manager")
Expand Down

0 comments on commit e1a41be

Please sign in to comment.