@@ -74,11 +74,13 @@ func main() {
7474 var enableLeaderElection bool
7575 var probeAddr string
7676 var pprofBindAddress string
77+ var webhookPort int
7778 var enableHTTP2 bool
7879 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
7980 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
8081 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
8182 flag .StringVar (& pprofBindAddress , "pprof-bind-address" , "" , "The address the pprof endpoint binds to. Set to empty to disable pprof." )
83+ flag .IntVar (& webhookPort , "webhook-bind-address" , 9443 , "The port the webhook server binds to." )
8284 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
8385 "Enable leader election for controller manager. " +
8486 "Enabling this will ensure there is only one active controller manager." )
@@ -108,7 +110,7 @@ func main() {
108110 PprofBindAddress : pprofBindAddress ,
109111 WebhookServer : webhook .NewServer (
110112 webhook.Options {
111- Port : 9443 ,
113+ Port : webhookPort ,
112114 TLSOpts : []func (config * tls.Config ){disableHTTP2 },
113115 }),
114116 }
0 commit comments