Skip to content

Commit

Permalink
Fix metrics endpoint to validate and authorize correctly (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
llDrLove authored Feb 24, 2025
1 parent 5fc3fa5 commit 0c3120e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func main() {

mgr, err := ctrl.NewManager(restConfig, ctrl.Options{
Scheme: scheme,
Metrics: diagnosticsOpts,
Metrics: metricsServerOptions,
LeaderElection: enableLeaderElection,
LeaderElectionID: "controller-leader-election-capdo",
LeaderElectionNamespace: leaderElectionNamespace,
Expand Down

0 comments on commit 0c3120e

Please sign in to comment.