Skip to content

Commit

Permalink
Add missing flag to manager (kubernetes-sigs#780)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin authored and k8s-ci-robot committed Mar 6, 2019
1 parent bf5d7f4 commit f73aacf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/book/provider_implementations/register_schemes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ func main() {
panic(fmt.Errorf("GetConfigOrDie didn't die"))
}

metricsAddr := flag.String("metrics-addr", ":8080", "The address the metric endpoint binds to.")
flag.Parse()

log := logf.Log.WithName("solas-controller-manager")
logf.SetLogger(logf.ZapLogger(false))
entryLog := log.WithName("entrypoint")

// Setup a Manager
mgr, err := manager.New(cfg, manager.Options{})
mgr, err := manager.New(cfg, manager.Options{MetricsBindAddress: *metricsAddr})
if err != nil {
entryLog.Error(err, "unable to set up overall controller manager")
os.Exit(1)
Expand Down

0 comments on commit f73aacf

Please sign in to comment.