@@ -73,10 +73,12 @@ func main() {
7373 var metricsAddr string
7474 var enableLeaderElection bool
7575 var probeAddr string
76+ var pprofBindAddress string
7677 var enableHTTP2 bool
7778 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
7879 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
7980 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
81+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
8082 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
8183 "Enable leader election for controller manager. " +
8284 "Enabling this will ensure there is only one active controller manager." )
@@ -103,6 +105,7 @@ func main() {
103105 HealthProbeBindAddress : probeAddr ,
104106 LeaderElection : enableLeaderElection ,
105107 LeaderElectionID : "f9497e05.openstack.org" ,
108+ PprofBindAddress : pprofBindAddress ,
106109 WebhookServer : webhook .NewServer (
107110 webhook.Options {
108111 Port : 9443 ,
0 commit comments