Skip to content

Commit

Permalink
Merge pull request #1302 from kevindelgado/webhook-output-scratch-env
Browse files Browse the repository at this point in the history
🐛 Print webhook config options from scratch-env example
  • Loading branch information
k8s-ci-robot committed Mar 8, 2021
2 parents 774f9d4 + 09b9e84 commit 4a8536e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/scratch-env/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4a8536e

Please sign in to comment.