Make Reflector helpers reusable.

Scheduler uses Reflector from pkg/client/cache.
It defines some helper classes.
I'd like to use those helpers with pkg/client/cache
in kube-proxy and kubelet too.
This commit is contained in:
Eric Tune
2015-01-07 13:12:29 -08:00
parent 4c57ec0f56
commit 7d5ac856c5
5 changed files with 196 additions and 144 deletions

View File

@@ -44,9 +44,9 @@ kube::test::find_pkgs() {
}
# -covermode=atomic becomes default with -race in Go >=1.3
KUBE_COVER=${KUBE_COVER:--cover -covermode=atomic}
KUBE_COVER="" #${KUBE_COVER:--cover -covermode=atomic}
KUBE_TIMEOUT=${KUBE_TIMEOUT:--timeout 120s}
KUBE_RACE=${KUBE_RACE:--race}
KUBE_RACE="" #${KUBE_RACE:--race}
kube::test::usage() {
kube::log::usage_from_stdin <<EOF