From ce25cd7fca557e4974766d4221b5dad34b79b2fb Mon Sep 17 00:00:00 2001 From: liuweixuan Date: Fri, 20 Sep 2019 23:28:58 +0800 Subject: [PATCH] Replace hyperkube with apiserver for binary path guess --- hack/local-up-cluster.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index b28c9a2f530..08d38c0134f 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -155,12 +155,12 @@ function usage { # This function guesses where the existing cached binary build is for the `-O` # flag function guess_built_binary_path { - local hyperkube_path - hyperkube_path=$(kube::util::find-binary "hyperkube") - if [[ -z "${hyperkube_path}" ]]; then + local apiserver_path + apiserver_path=$(kube::util::find-binary "kube-apiserver") + if [[ -z "${apiserver_path}" ]]; then return fi - echo -n "$(dirname "${hyperkube_path}")" + echo -n "$(dirname "${apiserver_path}")" } ### Allow user to supply the source directory.