kubectl/pkg
Michael Gugino a28f944c90 kubectl/drain add support for custom pod filters
Currently, there is no way to supply custom pod filters to
exclude pods meeting arbitrary criteria when using drain
as a library.

This commit adds the ability for developers to add custom
filters to the drain operation when utilizing drain
as a library.

This commit exports certain types that were previously
private to allow for better code reuse.

This commit also adds appropriate unit tests.

Kubernetes-commit: 85004f030dc3dceb9d15f41fdd607545758d5da2
2020-02-18 19:15:07 -05:00
..
apply Rename test/data directory to testdata 2019-10-31 13:40:02 -07:00
apps Move pkg/kubectl/apps to staging 2019-07-24 20:02:05 -07:00
cmd Update kubectl to use new vendored github.com/fvbommel/sortorder dependency 2020-09-02 17:52:26 -06:00
describe kubectl describe pod: use ReportingController as an event source 2020-08-04 18:10:34 +02:00
drain kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00
explain Improve kubectl explain formatting-preservation 2020-06-05 00:46:51 -04:00
generate Added --privileged flag to kubectl run 2020-04-28 16:30:59 -04:00
generated Add sigs for root folders 2020-08-11 10:35:20 -04:00
metricsutil cleanup req.Context() and ResponseWrapper 2020-01-27 18:52:27 -08:00
polymorphichelpers Squash pkg/describe/versioned/ into pkg/describe/ 2020-03-03 13:06:26 +01:00
proxy switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
rawhttp refactor 2020-01-27 18:19:44 -08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme Copy CSR v1beta1 to v1 2020-06-01 21:26:28 -04:00
util When combining PolicyRules, don't duplicate verbs 2020-05-18 15:20:06 -04:00
validation Move pkg/kubectl/validation to staging 2019-06-26 12:56:28 -07:00