Skip to content

Commit

Permalink
Fix reconciler-manager cmd to accept log flags
Browse files Browse the repository at this point in the history
Previously, -v=# and other log flags were not being registered.
Not it sets up log flags the sam as other component binaries.
  • Loading branch information
karlkfi committed Jul 29, 2023
1 parent e709103 commit 22ec624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/reconciler-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"kpt.dev/configsync/pkg/profiler"
"kpt.dev/configsync/pkg/reconcilermanager"
"kpt.dev/configsync/pkg/reconcilermanager/controllers"
"kpt.dev/configsync/pkg/util/log"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
// +kubebuilder:scaffold:imports
Expand Down Expand Up @@ -70,8 +71,8 @@ func main() {
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.Parse()

log.Setup()
profiler.Service()
ctrl.SetLogger(klogr.New())

Expand Down

0 comments on commit 22ec624

Please sign in to comment.