Merge pull request #82947 from notpad/master

Replace hyperkube with apiserver for binary path guess
This commit is contained in:
Kubernetes Prow Robot 2019-09-22 22:49:22 -07:00 committed by GitHub
commit dcf94c6d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.