@@ -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." )
@@ -91,6 +93,7 @@ func main() {
9193 HealthProbeBindAddress : probeAddr ,
9294 LeaderElection : enableLeaderElection ,
9395 LeaderElectionID : "7c2a6c6b.openstack.org" ,
96+ PprofBindAddress : pprofBindAddress ,
9497 WebhookServer : webhook .NewServer (
9598 webhook.Options {
9699 Port : 9443 ,
0 commit comments