diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index ebe260a33ad..19179b2dd6a 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -120,10 +120,6 @@ function codegen::protobuf() { return fi - # NOTE: All output from this script needs to be copied back to the calling - # source tree. This is managed in kube::build::copy_output in build/common.sh. - # If the output set is changed update that function. - local apis=() kube::util::read-array apis < <( git grep --untracked --null -l \ @@ -1055,9 +1051,7 @@ function codegen::protobindings() { hack/_update-generated-proto-bindings-dockerized.sh "${apis[@]}" else kube::log::status "protoc ${PROTOC_VERSION} not found (can install with hack/install-protoc.sh); generating containerized..." - # NOTE: All output from this script needs to be copied back to the calling - # source tree. This is managed in kube::build::copy_output in build/common.sh. - # If the output set is changed update that function. + build/run.sh hack/_update-generated-proto-bindings-dockerized.sh "${apis[@]}" fi }