Refactor Printer arguments

Fixes #21260
This commit is contained in:
Ivan Shvedunov
2016-06-23 17:49:31 +03:00
parent ae990defcf
commit 5ed881c6c4
10 changed files with 106 additions and 48 deletions

View File

@@ -74,7 +74,9 @@ func NewCmdPatch(f *cmdutil.Factory, out io.Writer) *cobra.Command {
// retrieve a list of handled resources from printer as valid args
validArgs, argAliases := []string{}, []string{}
p, err := f.Printer(nil, false, false, false, false, false, false, []string{})
p, err := f.Printer(nil, kubectl.PrintOptions{
ColumnLabels: []string{},
})
cmdutil.CheckErr(err)
if p != nil {
validArgs = p.HandledResources()