Skip to content

Commit 8d5c62d

Browse files
committed
main.go: add flags for webhook cert-name and -key
1 parent 25d6f09 commit 8d5c62d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ func InitFlags(fs *pflag.FlagSet) {
205205
fs.StringVar(&webhookOpts.CertDir, "webhook-cert-dir", "/tmp/k8s-webhook-server/serving-certs/",
206206
"Webhook cert dir, only used when webhook-port is specified.")
207207

208+
fs.StringVar(&webhookOpts.CertName, "webhook-cert-name", "tls.crt",
209+
"Webhook cert name, only used when webhook-port is specified.")
210+
211+
fs.StringVar(&webhookOpts.KeyName, "webhook-key-name", "tls.key",
212+
"Webhook key name, only used when webhook-port is specified.")
213+
208214
fs.StringVar(&managerOpts.HealthProbeBindAddress, "health-addr", ":9440",
209215
"The address the health endpoint binds to.",
210216
)

0 commit comments

Comments
 (0)