• juanvallejo's avatar
    add resource handling before printing · 7000e2cf
    juanvallejo authored
    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.
    7000e2cf
resource_filter.go 2.02 KB