@@ -72,10 +72,12 @@ func main() {
7272 var metricsAddr string
7373 var enableLeaderElection bool
7474 var probeAddr string
75+ var pprofBindAddress string
7576 var secureMetrics bool
7677 var enableHTTP2 bool
7778 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":33080" , "The address the metric endpoint binds to." )
7879 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":33081" , "The address the probe endpoint binds to." )
80+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
7981 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
8082 "Enable leader election for controller manager. " +
8183 "Enabling this will ensure there is only one active controller manager." )
@@ -122,6 +124,7 @@ func main() {
122124 HealthProbeBindAddress : probeAddr ,
123125 LeaderElection : enableLeaderElection ,
124126 LeaderElectionID : "5049980f.openstack.org" ,
127+ PprofBindAddress : pprofBindAddress ,
125128 // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
126129 // when the Manager ends. This requires the binary to immediately end when the
127130 // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
0 commit comments