Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ func main() {
}

if badgerGC != nil {
mgr.Add(badgerGC)
err := mgr.Add(badgerGC)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow I didn't know you could add runnable things to controller-runtime's Manager :o

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the first try at the GC was a mess of signal handlers and channels -- was delighted to find this 😮‍💨

if err != nil {
setupLog.Error(err, "unable to add GC to manager")
os.Exit(1)
}
}

probes.SetupChecks(mgr, setupLog)
Expand Down