Add debug output for protobindings generation

This commit is contained in:
Tim Hockin 2023-01-15 10:06:21 -08:00
parent c8ce229e64
commit afae402865
No known key found for this signature in database

View File

@ -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