mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
[Federation][init-07] Pull the default federation namespace into a constant.
This commit is contained in:
parent
caef02cf43
commit
dd365b42bf
@ -31,6 +31,10 @@ const (
|
|||||||
// KubeconfigSecretDataKey is the key name used in the secret to
|
// KubeconfigSecretDataKey is the key name used in the secret to
|
||||||
// stores a cluster's credentials.
|
// stores a cluster's credentials.
|
||||||
KubeconfigSecretDataKey = "kubeconfig"
|
KubeconfigSecretDataKey = "kubeconfig"
|
||||||
|
|
||||||
|
// DefaultFederationSystemNamespace is the namespace in which
|
||||||
|
// federation system components are hosted.
|
||||||
|
DefaultFederationSystemNamespace = "federation-system"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AdminConfig provides a filesystem based kubeconfig (via
|
// AdminConfig provides a filesystem based kubeconfig (via
|
||||||
@ -87,7 +91,7 @@ type SubcommandFlags struct {
|
|||||||
func AddSubcommandFlags(cmd *cobra.Command) {
|
func AddSubcommandFlags(cmd *cobra.Command) {
|
||||||
cmd.Flags().String("kubeconfig", "", "Path to the kubeconfig file to use for CLI requests.")
|
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("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
|
// GetSubcommandFlags retrieves the command line flag values for the
|
||||||
|
Loading…
Reference in New Issue
Block a user