mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
consolidate printer OutputOpts w PrintOpts
This patch removes the use of printers.OutputOptions in favor of only having a single struct for setting / passing printer options set by user flags.
This commit is contained in:
@@ -548,7 +548,7 @@ func Example_printPodHideTerminated() {
|
||||
podList := newAllPhasePodList()
|
||||
// filter pods
|
||||
filterFuncs := f.DefaultResourceFilterFunc()
|
||||
filterOpts := f.DefaultResourceFilterOptions(cmd, false)
|
||||
filterOpts := cmdutil.ExtractCmdPrintOptions(cmd, false)
|
||||
_, filteredPodList, errs := cmdutil.FilterResourceList(podList, filterFuncs, filterOpts)
|
||||
if errs != nil {
|
||||
fmt.Printf("Unexpected filter error: %v\n", errs)
|
||||
|
||||
Reference in New Issue
Block a user