|
96 | 96 | defaultSyncPeriod = manager.DefaultSyncPeriod
|
97 | 97 | defaultLeaderElectionID = manager.DefaultLeaderElectionID
|
98 | 98 | defaultPodName = manager.DefaultPodName
|
99 |
| - defaultWebhookPort = manager.DefaultWebhookServiceContainerPort |
100 | 99 | )
|
101 | 100 |
|
102 | 101 | // InitFlags initializes the flags.
|
@@ -199,11 +198,17 @@ func InitFlags(fs *pflag.FlagSet) {
|
199 | 198 | fs.IntVar(&clusterCacheTrackerClientBurst, "clustercachetracker-client-burst", 30,
|
200 | 199 | "Maximum number of queries that should be allowed in one burst from the cluster cache tracker clients to the Kubernetes API server of workload clusters.")
|
201 | 200 |
|
202 |
| - fs.IntVar(&webhookOpts.Port, "webhook-port", defaultWebhookPort, |
203 |
| - "Webhook Server port") |
| 201 | + fs.IntVar(&webhookOpts.Port, "webhook-port", 9443, |
| 202 | + "Webhook Server port.") |
204 | 203 |
|
205 | 204 | fs.StringVar(&webhookOpts.CertDir, "webhook-cert-dir", "/tmp/k8s-webhook-server/serving-certs/",
|
206 |
| - "Webhook cert dir, only used when webhook-port is specified.") |
| 205 | + "Webhook cert dir.") |
| 206 | + |
| 207 | + fs.StringVar(&webhookOpts.CertName, "webhook-cert-name", "tls.crt", |
| 208 | + "Webhook cert name.") |
| 209 | + |
| 210 | + fs.StringVar(&webhookOpts.KeyName, "webhook-key-name", "tls.key", |
| 211 | + "Webhook key name.") |
207 | 212 |
|
208 | 213 | fs.StringVar(&managerOpts.HealthProbeBindAddress, "health-addr", ":9440",
|
209 | 214 | "The address the health endpoint binds to.",
|
|
0 commit comments