Skip to content

Commit 09b9e84

Browse files
committed
Print webhook config options from scratch-env example
1 parent e1a725d commit 09b9e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/scratch-env/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ func runMain() int {
103103
log.Info("Wrote kubeconfig")
104104
}
105105

106+
if opts := env.WebhookInstallOptions; opts.LocalServingPort != 0 {
107+
log.Info("webhooks configured for", "host", opts.LocalServingHost, "port", opts.LocalServingPort, "dir", opts.LocalServingCertDir)
108+
}
109+
106110
ctx := ctrl.SetupSignalHandler()
107111
<-ctx.Done()
108112

0 commit comments

Comments
 (0)