Skip to content

Commit

Permalink
main.go: add flags for webhook cert-name and -key
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Oct 7, 2024
1 parent 25d6f09 commit 908c624
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,16 @@ func InitFlags(fs *pflag.FlagSet) {
"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.")

fs.IntVar(&webhookOpts.Port, "webhook-port", defaultWebhookPort,
"Webhook Server port")
"Webhook Server port.")

fs.StringVar(&webhookOpts.CertDir, "webhook-cert-dir", "/tmp/k8s-webhook-server/serving-certs/",
"Webhook cert dir, only used when webhook-port is specified.")
"Webhook cert dir.")

fs.StringVar(&webhookOpts.CertName, "webhook-cert-name", "tls.crt",
"Webhook cert name.")

fs.StringVar(&webhookOpts.KeyName, "webhook-key-name", "tls.key",
"Webhook key name.")

fs.StringVar(&managerOpts.HealthProbeBindAddress, "health-addr", ":9440",
"The address the health endpoint binds to.",
Expand Down

0 comments on commit 908c624

Please sign in to comment.