remove cmd arg

related issue "Remove cmd from kubectl/cmd/factory arguments #4470"
This commit is contained in:
Young
2015-03-27 21:46:17 +08:00
parent 8a7a127352
commit 84bfda0587
9 changed files with 11 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ func RunLabel(f *Factory, out io.Writer, cmd *cobra.Command, args []string) erro
}
mapper, typer := f.Object()
b := resource.NewBuilder(mapper, typer, f.ClientMapperForCommand(cmd)).
b := resource.NewBuilder(mapper, typer, f.ClientMapperForCommand()).
ContinueOnError().
NamespaceParam(cmdNamespace).DefaultNamespace().
SelectorParam(selector).