@@ -80,10 +80,12 @@ func main() {
8080 var metricsAddr string
8181 var enableLeaderElection bool
8282 var probeAddr string
83+ var pprofBindAddress string
8384 var enableHTTP2 bool
8485 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
8586 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":24600" , "The address the metric endpoint binds to." )
8687 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":24601" , "The address the probe endpoint binds to." )
88+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
8789 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
8890 "Enable leader election for controller manager. " +
8991 "Enabling this will ensure there is only one active controller manager." )
@@ -111,6 +113,7 @@ func main() {
111113 HealthProbeBindAddress : probeAddr ,
112114 LeaderElection : enableLeaderElection ,
113115 LeaderElectionID : "f33036c1.openstack.org" ,
116+ PprofBindAddress : pprofBindAddress ,
114117 WebhookServer : webhook .NewServer (
115118 webhook.Options {
116119 Port : 9444 ,
0 commit comments