@@ -61,10 +61,12 @@ func main() {
6161 var metricsAddr string
6262 var enableLeaderElection bool
6363 var probeAddr string
64+ var pprofBindAddress string
6465 var enableHTTP2 bool
6566 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
6667 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
6768 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
69+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
6870 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
6971 "Enable leader election for controller manager. " +
7072 "Enabling this will ensure there is only one active controller manager." )
@@ -96,6 +98,7 @@ func main() {
9698 HealthProbeBindAddress : probeAddr ,
9799 LeaderElection : enableLeaderElection ,
98100 LeaderElectionID : "6cce095b.openstack.org" ,
101+ PprofBindAddress : pprofBindAddress ,
99102 // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
100103 // when the Manager ends. This requires the binary to immediately end when the
101104 // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
0 commit comments