make template printers a recommended printer

This commit is contained in:
David Eads
2018-07-02 10:05:24 -04:00
parent 52d45cfd4f
commit 70417ca150
17 changed files with 70 additions and 144 deletions

View File

@@ -59,7 +59,7 @@ func TestCreatePriorityClass(t *testing.T) {
cmd.Flags().Set("dry-run", "true")
cmd.Flags().Set("output", outputFormat)
printFlags := NewPrintFlags("created", legacyscheme.Scheme)
printFlags := genericclioptions.NewPrintFlags("created").WithTypeSetter(legacyscheme.Scheme)
printFlags.OutputFormat = &outputFormat
options := &PriorityClassOpts{