Move default target list from build_go to config_go

This commit is contained in:
Eric Paris 2014-09-05 13:13:53 -04:00
parent 516de0550a
commit 4ba97e3968
2 changed files with 10 additions and 8 deletions

View File

@ -48,14 +48,7 @@ for arg; do
done
if [[ ${#targets[@]} -eq 0 ]]; then
targets=(
cmd/proxy
cmd/apiserver
cmd/controller-manager
cmd/kubelet
cmd/kubecfg
plugin/cmd/scheduler
)
targets=($(kube::default_build_targets))
fi
binaries=()

View File

@ -114,6 +114,15 @@ kube::setup_go_environment() {
}
# kube::default_build_targets return list of all build targets
kube::default_build_targets() {
echo "cmd/proxy"
echo "cmd/apiserver"
echo "cmd/controller-manager"
echo "cmd/kubelet"
echo "cmd/kubecfg"
echo "plugin/cmd/scheduler"
}
# --- Environment Variables ---
# KUBE_REPO_ROOT - Path to the top of the build tree.