diff --git a/cluster/juju/util.sh b/cluster/juju/util.sh index 009dcd0c8b0..f253abd0c8c 100755 --- a/cluster/juju/util.sh +++ b/cluster/juju/util.sh @@ -30,11 +30,21 @@ function verify-prereqs() { gather_installation_reqs } +function build-local() { + # Build the binaries locally that are used in the charms. + make all WHAT="cmd/kube-apiserver cmd/kubectl cmd/kube-controller-manager plugin/cmd/kube-scheduler cmd/kubelet cmd/kube-proxy" + OUTPUT_DIR=_output/local/bin/linux/amd64 + mkdir -p cluster/juju/charms/trusty/kubernetes-master/files/output + # Copy the binary output to the charm directory. + cp -v $OUTPUT_DIR/* cluster/juju/charms/trusty/kubernetes-master/files/output +} + function get-password() { echo "TODO: Assign username/password security" } function kube-up() { + build-local if [[ -d "~/.juju/current-env" ]]; then juju quickstart -i --no-browser else