-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move init code from main to instrumentor package (#2445)
This PR mainly refactor the instrumentor main function, and extracts it's code to the `instrumentor` package. * `instrumentor.New` initlizes the manager and all its controllers and webhooks. * `instrumentor.Run` launches the runnables including the manager itself. The telemetry reporter was adjusted to accept a context so we can cancel it once the instrumentor shuts down and exit gracefully.
- Loading branch information
Showing
7 changed files
with
344 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.