From f73aacf58e67013ffe0a0e69065ff8d896931df3 Mon Sep 17 00:00:00 2001 From: pablochacin Date: Wed, 6 Mar 2019 21:42:48 +0100 Subject: [PATCH] Add missing flag to manager (#780) Signed-off-by: Pablo Chacin --- docs/book/provider_implementations/register_schemes.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/book/provider_implementations/register_schemes.md b/docs/book/provider_implementations/register_schemes.md index b64785941faa..08d42988ed66 100644 --- a/docs/book/provider_implementations/register_schemes.md +++ b/docs/book/provider_implementations/register_schemes.md @@ -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)