kubernetes/pkg/kubectl/cmd/util
Kubernetes Submit Queue b95fa62fe1 Merge pull request #31163 from juanvallejo/jvallejo_filter-resources-before-printing
Automatic merge from submit-queue

add resource filter handling before printing

**Release note**:
```release-note
release-note-none
```

Resources are currently filtered (in order to prevent printing) at print
time in their HumanReadablePrinter handlers. This design makes it not
possible to filter objects when they are printed using any other
printer, such as YAML, JSON, or the NamePrinter.

This patch removes any filters previously added at the printer level for
pods and adds a way to define resource-specific filters before they are
sent to a printer handler. A woking filter handler for pods has also been
implemented.

Filters affect resources being printed through the HumanReadablePrinter,
YAML, JSON, and `--template` printers.

cc @smarterclayton
2016-09-23 10:45:57 -07:00
..
editor Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jsonmerge change all jsonmerge to strategicpatch 2016-09-09 08:28:10 +08:00
clientcache.go convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
factory_test.go Extend all to more resources 2016-09-19 13:01:59 -04:00
factory.go Merge pull request #31163 from juanvallejo/jvallejo_filter-resources-before-printing 2016-09-23 10:45:57 -07:00
helpers_test.go Add return code support to kubectl-exec and -run 2016-08-20 15:58:47 +02:00
helpers.go add resource handling before printing 2016-09-21 10:03:59 -04:00
printing.go Merge pull request #28531 from dims/fix-issues-28314 2016-07-13 06:09:25 -07:00
shortcut_restmapper_test.go Extend all to more resources 2016-09-19 13:01:59 -04:00
shortcut_restmapper.go Extend all to more resources 2016-09-19 13:01:59 -04:00