@@ -72,11 +72,13 @@ func main() {
7272 var enableLeaderElection bool
7373 var probeAddr string
7474 var pprofBindAddress string
75+ var webhookPort int
7576 var enableHTTP2 bool
7677 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
7778 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8085" , "The address the metric endpoint binds to." )
7879 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8086" , "The address the probe endpoint binds to." )
7980 flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
81+ flag .IntVar (& webhookPort , "webhook-bind-address" , 9443 , "The port the webhook server binds to." )
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." )
@@ -106,7 +108,7 @@ func main() {
106108 PprofBindAddress : pprofBindAddress ,
107109 WebhookServer : webhook .NewServer (
108110 webhook.Options {
109- Port : 9443 ,
111+ Port : webhookPort ,
110112 TLSOpts : []func (config * tls.Config ){disableHTTP2 },
111113 }),
112114 }
0 commit comments