mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix running mesos-docker configuration on Darwin
When following https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/mesos-docker.md guide on Mac it builds binaries under Darwin platform, therefore km/build.sh can't find km binary because it was only looking for Linux. This change makes it also look for Darwin binaries too.
This commit is contained in:
parent
f64780d6eb
commit
1fcb0019b9
@ -41,8 +41,11 @@ find-binary() {
|
||||
|
||||
km_path=$(find-binary km linux/amd64)
|
||||
if [ -z "$km_path" ]; then
|
||||
echo "Failed to find km binary" 1>&2
|
||||
exit 1
|
||||
km_path=$(find-binary km darwin/amd64)
|
||||
if [ -z "$km_path" ]; then
|
||||
echo "Failed to find km binary" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
kube_bin_path=$(dirname ${km_path})
|
||||
common_bin_path=$(cd ${script_dir}/../common/bin && pwd -P)
|
||||
|
Loading…
Reference in New Issue
Block a user