Skip to content

Refactor setup of the hook manager

Patrick Steinhardt requested to merge pks-hook-manager-metrics into master

The hook manager is currently instantiated as part of service registration. This MR refactors this to instead inject the hook manager into the service setup from cmd/gitaly like we also do for Praefect's managers. Like this, there's only a single instance of the hook manager, which allows us to directly register it as a metric with Prometheus, decreasing our use of global variables.

Merge request reports