From dd365b42bf8b2877eef0650d856718a556098f0b Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Sat, 29 Oct 2016 18:16:43 -0700 Subject: [PATCH] [Federation][init-07] Pull the default federation namespace into a constant. --- federation/pkg/kubefed/util/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/federation/pkg/kubefed/util/util.go b/federation/pkg/kubefed/util/util.go index 67c5c04c2f0..c6dd285de49 100644 --- a/federation/pkg/kubefed/util/util.go +++ b/federation/pkg/kubefed/util/util.go @@ -31,6 +31,10 @@ const ( // KubeconfigSecretDataKey is the key name used in the secret to // stores a cluster's credentials. KubeconfigSecretDataKey = "kubeconfig" + + // DefaultFederationSystemNamespace is the namespace in which + // federation system components are hosted. + DefaultFederationSystemNamespace = "federation-system" ) // AdminConfig provides a filesystem based kubeconfig (via @@ -87,7 +91,7 @@ type SubcommandFlags struct { func AddSubcommandFlags(cmd *cobra.Command) { cmd.Flags().String("kubeconfig", "", "Path to the kubeconfig file to use for CLI requests.") cmd.Flags().String("host-cluster-context", "", "Host cluster context") - cmd.Flags().String("federation-system-namespace", "federation-system", "Namespace in the host cluster where the federation system components are installed") + cmd.Flags().String("federation-system-namespace", DefaultFederationSystemNamespace, "Namespace in the host cluster where the federation system components are installed") } // GetSubcommandFlags retrieves the command line flag values for the