mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Changing the util.sh to build kubernetes binaries locally.
This commit is contained in:
parent
6ffe46a9e0
commit
e013541573
@ -30,11 +30,21 @@ function verify-prereqs() {
|
|||||||
gather_installation_reqs
|
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() {
|
function get-password() {
|
||||||
echo "TODO: Assign username/password security"
|
echo "TODO: Assign username/password security"
|
||||||
}
|
}
|
||||||
|
|
||||||
function kube-up() {
|
function kube-up() {
|
||||||
|
build-local
|
||||||
if [[ -d "~/.juju/current-env" ]]; then
|
if [[ -d "~/.juju/current-env" ]]; then
|
||||||
juju quickstart -i --no-browser
|
juju quickstart -i --no-browser
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user