Skip to content

Commit

Permalink
chore: disable prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jun 28, 2023
1 parent 753a4f3 commit 454ab61
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ func init() {
}

type ManagerOptions struct {
MetricsBindAddress string
LeaderElectionID string
AddToSchemeFunc func(*runtime.Scheme) error
LeaderElectionID string
AddToSchemeFunc func(*runtime.Scheme) error
}

func Manager(opts *ManagerOptions) (manager.Manager, error) {
Expand All @@ -37,7 +36,7 @@ func Manager(opts *ManagerOptions) (manager.Manager, error) {
// Use options for reconciling setup
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
MetricsBindAddress: opts.MetricsBindAddress,
MetricsBindAddress: "0",
Port: 9443,
LeaderElection: len(opts.LeaderElectionID) > 0,
LeaderElectionID: opts.LeaderElectionID,
Expand Down

0 comments on commit 454ab61

Please sign in to comment.