Build code-generator tools directly

This commit is contained in:
Jordan Liggitt
2020-08-01 22:28:12 -04:00
parent a8ae7aefd0
commit d8b0f6fc50
7 changed files with 16 additions and 24 deletions

View File

@@ -27,10 +27,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
# $1: Full path to the directory where the api.proto file is
function kube::protoc::generate_proto() {
kube::golang::setup_env
local bins=(
vendor/k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo
)
make -C "${KUBE_ROOT}" WHAT="${bins[*]}"
go install k8s.io/kubernetes/vendor/k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo
kube::protoc::check_protoc