boenn: De-duplicate predicate (known as filter now) logic shared in kubelet and scheduler

JobBuild
cec2aae1
11-25 03:22
103934
11-25 02:24
unknown
11-25 02:23
pull-kubernetes-conformance-kind-ga-only-parallel 1463709591333244928 1463694706591404032
pull-kubernetes-conformance-kind-ipv6-parallel 1463709591157084160 1463694706419437568
pull-kubernetes-dependencies 1463709591182249984 1463694706444603392
pull-kubernetes-e2e-gce-100-performance 1463709591417131008 1463694706687873024
pull-kubernetes-e2e-gce-ubuntu-containerd 1463709591211610112 1463694706469769216
pull-kubernetes-e2e-kind 1463709591274524672 1463694706528489472
pull-kubernetes-e2e-kind-ipv6 1463709591299690496 1463694706562043904
pull-kubernetes-integration 1463709591240970240 1463694706499129344
pull-kubernetes-node-e2e-containerd 1463709591387770880 1463694706641735680
pull-kubernetes-typecheck 1463709591987556352 1463694707241521152
pull-kubernetes-unit 1463709591358410752 1463694706616569856
pull-kubernetes-verify 1463709593673666560 1463694708923437056
pull-kubernetes-verify-govet-levee 1463709592822222848 1463694708088770560