kubectl/pkg/drain
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
..
cordon.go Use --dry-run=client,server in kubectl. 2020-01-30 20:23:33 -05:00
default.go Use --dry-run=client,server in kubectl. 2020-01-30 20:23:33 -05:00
drain.go kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00
drain_test.go kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00
filter_test.go kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00
filters.go kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00