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

@@ -79,7 +79,7 @@ func RunDelete(f *Factory, out io.Writer, cmd *cobra.Command, args []string, fil
return err
}
mapper, typer := f.Object()
r := resource.NewBuilder(mapper, typer, f.ClientMapperForCommand(cmd)).
r := resource.NewBuilder(mapper, typer, f.ClientMapperForCommand()).
ContinueOnError().
NamespaceParam(cmdNamespace).DefaultNamespace().
FilenameParam(filenames...).