Skip to content

Commit e03385d

Browse files
build/release-images.sh: remove possible duplicate targets
Previously, cmd/kubectl is duplicate as following: $ make V=1 quick-release-images ... +++ [0310 11:30:50] Building go targets for linux/amd64: cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-scheduler cmd/kube-proxy vendor/github.com/onsi/ginkgo/ginkgo test/e2e/e2e.test cluster/images/conformance/go-runner cmd/kubectl cmd/kubelet cmd/kubectl Co-Authored-By: Benjamin Elder <[email protected]> Suggested-by: Davanum Srinivas <[email protected]> Signed-off-by: Li Zhijian <[email protected]>
1 parent 900143c commit e03385d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/release-images.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ if [[ "${KUBE_BUILD_CONFORMANCE}" =~ [yY] ]]; then
3131
fi
3232

3333
# TODO(dims): Remove this when we get rid of hyperkube image
34-
CMD_TARGETS="${CMD_TARGETS} cmd/kubelet cmd/kubectl"
34+
if [[ "${KUBE_BUILD_HYPERKUBE}" =~ [yY] ]]; then
35+
CMD_TARGETS=$(echo "${CMD_TARGETS} cmd/kubelet cmd/kubectl" | tr ' ' '\n' | sort | uniq | tr '\n' ' ')
36+
fi
3537

3638
kube::build::verify_prereqs
3739
kube::build::build_image

0 commit comments

Comments
 (0)