Skip to content

Commit

Permalink
Make prometheus reisterer mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Jan 9, 2025
1 parent b72dea6 commit b3ba472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoupdate/rollout/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewController(client Client, log *slog.Logger, clock clockwork.Clock, perio
return nil, trace.BadParameter("missing clock")
}
if reg == nil {
reg = prometheus.DefaultRegisterer
return nil, trace.BadParameter("missing prometheus.Registerer")
}

if period <= 0 {
Expand Down

0 comments on commit b3ba472

Please sign in to comment.