From afae402865b8f329684b5a5d0f508d64074b25a7 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sun, 15 Jan 2023 10:06:21 -0800 Subject: [PATCH] Add debug output for protobindings generation --- hack/update-codegen.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 3207bbb4391..37344693bdd 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -796,6 +796,14 @@ function codegen::protobindings() { "pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis" ) + kube::log::status "Generating protobuf bindings for ${#apis[@]} targets" + if [[ "${DBG_CODEGEN}" == 1 ]]; then + kube::log::status "DBG: generating protobuf bindings for:" + for dir in "${apis[@]}"; do + kube::log::status "DBG: $dir" + done + fi + for api in "${apis[@]}"; do git ls-files -z -cmo --exclude-standard ":(glob)${api}"/'**/api.pb.go' \ | xargs -0 rm -f