mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 14:41:42 +00:00
Minor: allow hack/build-go.sh to take args for faster iteration.
e.g.
$ ./hack/build-go.sh kubelet
+++ Building kubelet
$
This commit is contained in:
@@ -24,6 +24,10 @@ cd "${KUBE_TARGET}"
|
|||||||
|
|
||||||
BINARIES="proxy integration apiserver controller-manager kubelet cloudcfg localkube"
|
BINARIES="proxy integration apiserver controller-manager kubelet cloudcfg localkube"
|
||||||
|
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
|
BINARIES="$@"
|
||||||
|
fi
|
||||||
|
|
||||||
for b in $BINARIES; do
|
for b in $BINARIES; do
|
||||||
echo "+++ Building ${b}"
|
echo "+++ Building ${b}"
|
||||||
go build "${KUBE_GO_PACKAGE}"/cmd/${b}
|
go build "${KUBE_GO_PACKAGE}"/cmd/${b}
|
||||||
|
|||||||
Reference in New Issue
Block a user