From 4ba97e39680e188d3aa2c4ea0f3b667cc8bed43d Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Fri, 5 Sep 2014 13:13:53 -0400 Subject: [PATCH] Move default target list from build_go to config_go --- hack/build-go.sh | 9 +-------- hack/config-go.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hack/build-go.sh b/hack/build-go.sh index 72560428d17..a011ed852bf 100755 --- a/hack/build-go.sh +++ b/hack/build-go.sh @@ -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=() diff --git a/hack/config-go.sh b/hack/config-go.sh index 84147132d6d..9d92b53e90f 100644 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -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.