Skip to content

Commit b3ba472

Browse files
committed
Make prometheus reisterer mandatory
1 parent b72dea6 commit b3ba472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/autoupdate/rollout/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func NewController(client Client, log *slog.Logger, clock clockwork.Clock, perio
6464
return nil, trace.BadParameter("missing clock")
6565
}
6666
if reg == nil {
67-
reg = prometheus.DefaultRegisterer
67+
return nil, trace.BadParameter("missing prometheus.Registerer")
6868
}
6969

7070
if period <= 0 {

0 commit comments

Comments
 (0)