mirror of https://github.com/k3s-io/k3s
Changing the util.sh to build kubernetes binaries locally.
parent
6ffe46a9e0
commit
e013541573
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue