File tree Expand file tree Collapse file tree 3 files changed +13
-121
lines changed Expand file tree Collapse file tree 3 files changed +13
-121
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,6 @@ sh_test(
44
44
],
45
45
)
46
46
47
- sh_test (
48
- name = "clientbin_test" ,
49
- srcs = ["clientbin.sh" ],
50
- deps = [
51
- "//hack/lib" ,
52
- ],
53
- )
54
-
55
47
sh_test (
56
48
name = "kube-util_test" ,
57
49
srcs = ["kube-util.sh" ],
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,15 +32,25 @@ set -o pipefail
32
32
33
33
KUBE_ROOT=${KUBE_ROOT:- $(dirname " ${BASH_SOURCE[0]} " )/ ..}
34
34
source " ${KUBE_ROOT} /cluster/kube-util.sh"
35
- source " ${KUBE_ROOT} /cluster/clientbin .sh"
35
+ source " ${KUBE_ROOT} /hack/lib/util .sh"
36
36
37
37
# If KUBECTL_PATH isn't set, gather up the list of likely places and use ls
38
38
# to find the latest one.
39
39
if [[ -z " ${KUBECTL_PATH:- } " ]]; then
40
- kubectl=$( get_bin " kubectl " " cmd/ kubectl" )
40
+ kubectl=$( kube::util::find-binary " kubectl" )
41
41
42
42
if [[ ! -x " $kubectl " ]]; then
43
- print_error " kubectl"
43
+ {
44
+ echo " It looks as if you don't have a compiled kubectl binary"
45
+ echo
46
+ echo " If you are running from a clone of the git repo, please run"
47
+ echo " './build/run.sh make cross'. Note that this requires having"
48
+ echo " Docker installed."
49
+ echo
50
+ echo " If you are running from a binary release tarball, something is wrong. "
51
+ echo " Look at http://kubernetes.io/ for information on how to contact the "
52
+ echo " development team for help."
53
+ } >&2
44
54
exit 1
45
55
fi
46
56
elif [[ ! -x " ${KUBECTL_PATH} " ]]; then
You can’t perform that action at this time.
0 commit comments