@@ -88,10 +88,12 @@ func main() {
8888 var metricsAddr string
8989 var enableLeaderElection bool
9090 var probeAddr string
91+ var pprofBindAddress string
9192 var enableHTTP2 bool
9293 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
9394 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8083" , "The address the metric endpoint binds to." )
9495 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8084" , "The address the probe endpoint binds to." )
96+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
9597 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
9698 "Enable leader election for controller manager. " +
9799 "Enabling this will ensure there is only one active controller manager." )
@@ -118,6 +120,7 @@ func main() {
118120 HealthProbeBindAddress : probeAddr ,
119121 LeaderElection : enableLeaderElection ,
120122 LeaderElectionID : "fa1814a2.openstack.org" ,
123+ PprofBindAddress : pprofBindAddress ,
121124 WebhookServer : webhook .NewServer (
122125 webhook.Options {
123126 Port : 9443 ,
0 commit comments