@@ -84,10 +84,12 @@ func main() {
8484 var metricsAddr string
8585 var enableLeaderElection bool
8686 var probeAddr string
87+ var pprofBindAddress string
8788 var enableHTTP2 bool
8889 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
8990 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
9091 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
92+ flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
9193 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
9294 "Enable leader election for controller manager. " +
9395 "Enabling this will ensure there is only one active controller manager." )
@@ -114,6 +116,7 @@ func main() {
114116 HealthProbeBindAddress : probeAddr ,
115117 LeaderElection : enableLeaderElection ,
116118 LeaderElectionID : "c8c223a1.openstack.org" ,
119+ PprofBindAddress : pprofBindAddress ,
117120 WebhookServer : webhook .NewServer (
118121 webhook.Options {
119122 Port : 9443 ,
0 commit comments