Move things into a 'kube-system' namespace.
This commit is contained in:
committed by
Satnam Singh
parent
c8f8e5f333
commit
988aa6fdf6
@@ -169,6 +169,8 @@ const (
|
||||
NamespaceAll string = ""
|
||||
// NamespaceNone is the argument for a context when there is no namespace.
|
||||
NamespaceNone string = ""
|
||||
// NamespaceSystem is the system namespace where we place system components.
|
||||
NamespaceSystem string = "kube-system"
|
||||
// TerminationMessagePathDefault means the default path to capture the application termination message running in a container
|
||||
TerminationMessagePathDefault string = "/dev/termination-log"
|
||||
)
|
||||
|
||||
@@ -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