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 4, 2024
1 parent 25d6f09 commit 8d5c62d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ func InitFlags(fs *pflag.FlagSet) {
fs.StringVar(&webhookOpts.CertDir, "webhook-cert-dir", "/tmp/k8s-webhook-server/serving-certs/",
"Webhook cert dir, only used when webhook-port is specified.")

fs.StringVar(&webhookOpts.CertName, "webhook-cert-name", "tls.crt",
"Webhook cert name, only used when webhook-port is specified.")

fs.StringVar(&webhookOpts.KeyName, "webhook-key-name", "tls.key",
"Webhook key name, only used when webhook-port is specified.")

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

0 comments on commit 8d5c62d

Please sign in to comment.