From 0c3120e30f8834cf47cfba8f193393b511c78ac3 Mon Sep 17 00:00:00 2001 From: llDrLove Date: Mon, 24 Feb 2025 04:18:29 -0500 Subject: [PATCH] Fix metrics endpoint to validate and authorize correctly (#690) --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 3c3b295d8..e2f26ca03 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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,