From 09b9e8475ec9a1fe5199f61483639f95d01e154a Mon Sep 17 00:00:00 2001 From: Kevin Delgado Date: Tue, 16 Feb 2021 20:47:37 +0000 Subject: [PATCH] Print webhook config options from scratch-env example --- examples/scratch-env/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/scratch-env/main.go b/examples/scratch-env/main.go index 32c6ffcd48..0739017b41 100644 --- a/examples/scratch-env/main.go +++ b/examples/scratch-env/main.go @@ -103,6 +103,10 @@ func runMain() int { log.Info("Wrote kubeconfig") } + if opts := env.WebhookInstallOptions; opts.LocalServingPort != 0 { + log.Info("webhooks configured for", "host", opts.LocalServingHost, "port", opts.LocalServingPort, "dir", opts.LocalServingCertDir) + } + ctx := ctrl.SetupSignalHandler() <-ctx.Done()