Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main, init: wrap setupLog into Context to init components
Since it can be not desireable to return fatal error for some init problems, it is still useful to log them. Wrap the logger into Context like controller-runtime does [1][2]. [1] https://github.com/kubernetes-sigs/controller-runtime/blob/38546806f2faf5973e3321a7bd5bb3afdbb5767d/pkg/internal/controller/controller.go#L297 [2] https://github.com/kubernetes-sigs/controller-runtime/blob/38546806f2faf5973e3321a7bd5bb3afdbb5767d/pkg/internal/controller/controller.go#L111 Signed-off-by: Yauheni Kaliuta <[email protected]>
- Loading branch information