Skip to content

Commit

Permalink
Add compact controller to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough committed Sep 26, 2024
1 parent c799048 commit 420d880
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,18 @@ func main() {
os.Exit(1)
}

if err = controller.NewThanosCompactReconciler(
logger.WithName("compactor"),
mgr.GetClient(),
mgr.GetScheme(),
mgr.GetEventRecorderFor("thanos-compact-controller"),
ctrlmetrics.Registry,
controllerBaseMetrics,
).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "ThanosCompact")
os.Exit(1)
}

//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down

0 comments on commit 420d880

Please sign in to comment.