Merge pull request #88993 from zhijianli88/remove-duplicate-targets

build/release-images.sh: remove possible duplicate targets
This commit is contained in:
Kubernetes Prow Robot 2020-03-13 12:11:47 -07:00 committed by GitHub
commit 8cecc9aeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,9 @@ if [[ "${KUBE_BUILD_CONFORMANCE}" =~ [yY] ]]; then
fi
# TODO(dims): Remove this when we get rid of hyperkube image
CMD_TARGETS="${CMD_TARGETS} cmd/kubelet cmd/kubectl"
if [[ "${KUBE_BUILD_HYPERKUBE}" =~ [yY] ]]; then
CMD_TARGETS=$(echo "${CMD_TARGETS} cmd/kubelet cmd/kubectl" | tr ' ' '\n' | sort | uniq | tr '\n' ' ')
fi
kube::build::verify_prereqs
kube::build::build_image