Move things into a 'kube-system' namespace.
This commit is contained in:

committed by
Satnam Singh

parent
c8f8e5f333
commit
988aa6fdf6
@@ -57,9 +57,9 @@ func RunClusterInfo(factory *cmdutil.Factory, out io.Writer, cmd *cobra.Command)
|
||||
printService(out, "Kubernetes master", client.Host)
|
||||
|
||||
mapper, typer := factory.Object()
|
||||
cmdNamespace, _, err := factory.DefaultNamespace()
|
||||
if err != nil {
|
||||
return err
|
||||
cmdNamespace := cmdutil.GetFlagString(cmd, "namespace")
|
||||
if cmdNamespace == "" {
|
||||
cmdNamespace = api.NamespaceSystem
|
||||
}
|
||||
|
||||
// TODO use generalized labels once they are implemented (#341)
|
||||
|
Reference in New Issue
Block a user