mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-23 06:26:43 +00:00
feat(manager): allow customization of the webhook port
This commit is contained in:
committed by
Dario Tranchitella
parent
92b1debe6b
commit
010ed41ca7
@@ -102,8 +102,11 @@ func main() {
|
||||
|
||||
var metricsAddr, namespace, configurationName string
|
||||
|
||||
var webhookPort int
|
||||
|
||||
var goFlagSet goflag.FlagSet
|
||||
|
||||
flag.IntVar(&webhookPort, "webhook-port", 9443, "The port the webhook server binds to.")
|
||||
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
|
||||
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
|
||||
"Enable leader election for controller manager. "+
|
||||
@@ -142,7 +145,7 @@ func main() {
|
||||
manager, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
|
||||
Scheme: scheme,
|
||||
MetricsBindAddress: metricsAddr,
|
||||
Port: 9443,
|
||||
Port: webhookPort,
|
||||
LeaderElection: enableLeaderElection,
|
||||
LeaderElectionID: "42c733ea.clastix.capsule.io",
|
||||
HealthProbeBindAddress: ":10080",
|
||||
|
||||
Reference in New Issue
Block a user