From a714f557ef14054166ca4dc21ea37a4dd590bc29 Mon Sep 17 00:00:00 2001 From: Nick Sardo Date: Thu, 12 Apr 2018 13:56:08 -0700 Subject: [PATCH] Add multi-cluster flag --- pkg/flags/flags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/flags/flags.go b/pkg/flags/flags.go index a52c7711f2..e1391264c5 100644 --- a/pkg/flags/flags.go +++ b/pkg/flags/flags.go @@ -44,6 +44,7 @@ var ( DefaultSvc string DeleteAllOnQuit bool GCERateLimit RateLimitSpecs + MultiCluster bool HealthCheckPath string HealthzPort int Features *Features @@ -123,6 +124,8 @@ values.`) flag.BoolVar(&F.InCluster, "running-in-cluster", true, `Optional, if this controller is running in a kubernetes cluster, use the pod secrets for creating a Kubernetes client.`) + flag.BoolVar(&F.MultiCluster, "multi-cluster", false, + `enables the controller to run in multi-cluster mode.`) flag.StringVar(&F.KubeConfigFile, "kubeconfig", "", `Path to kubeconfig file with authorization and master location information.`) flag.DurationVar(&F.ResyncPeriod, "sync-period", 30*time.Second,