k3s/pkg/kubectl/resource
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
..
builder.go Merge pull request #32944 from k82cn/refactor_builder_visitorResult 2016-09-22 13:45:09 -07:00
builder_test.go Merge pull request #30815 from ymqytw/refactoring 2016-09-16 19:48:22 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
helper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
helper_test.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mapper.go kubectl/resource: Remove thirdparty special casing 2016-08-15 22:07:54 -07:00
result.go add resource handling before printing 2016-09-21 10:03:59 -04:00
selector.go Merge pull request #27243 from smarterclayton/dont_alter_error 2016-07-11 16:42:08 -07:00
visitor.go Add namespace error checking if a resource is not found. 2016-09-14 06:51:36 -07:00
visitor_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00