Merge pull request #10493 from krousey/namespace

Unify command line namespace resolution
This commit is contained in:
Zach Loafman
2015-07-01 19:33:44 -07:00
23 changed files with 120 additions and 57 deletions

View File

@@ -95,7 +95,7 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string
allNamespaces := cmdutil.GetFlagBool(cmd, "all-namespaces")
mapper, typer := f.Object()
cmdNamespace, err := f.DefaultNamespace()
cmdNamespace, _, err := f.DefaultNamespace()
if err != nil {
return err
}