From cc226900068266e2aed0ca913a644383ce33af8e Mon Sep 17 00:00:00 2001 From: Starttoaster Date: Tue, 16 Jul 2024 12:51:55 -0700 Subject: [PATCH] Add recorders to crawler and introducer manager --- cmd/main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index b1b4b79..dea54b8 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -143,15 +143,17 @@ func main() { os.Exit(1) } if err = (&chiaintroducer.ChiaIntroducerReconciler{ - Client: mgr.GetClient(), - Scheme: mgr.GetScheme(), + Client: mgr.GetClient(), + Scheme: mgr.GetScheme(), + Recorder: mgr.GetEventRecorderFor("chiaintroducer-controller"), }).SetupWithManager(mgr); err != nil { setupLog.Error(err, "unable to create controller", "controller", "ChiaIntroducer") os.Exit(1) } if err = (&chiacrawler.ChiaCrawlerReconciler{ - Client: mgr.GetClient(), - Scheme: mgr.GetScheme(), + Client: mgr.GetClient(), + Scheme: mgr.GetScheme(), + Recorder: mgr.GetEventRecorderFor("chiacrawler-controller"), }).SetupWithManager(mgr); err != nil { setupLog.Error(err, "unable to create controller", "controller", "ChiaCrawler") os.Exit(1)