kube_codegen: genclient can look in any Go file

Some out-of-tree consumers have types_foo.go and types_bar.go.
This commit is contained in:
Tim Hockin 2023-10-20 16:29:40 -07:00
parent a789a9d44b
commit 87d158e457
No known key found for this signature in database

View File

@ -551,7 +551,7 @@ function kube::codegen::gen_client() {
done < <(
( kube::codegen::internal::git_grep -l --null \
-e '+genclient' \
":(glob)${in_root}"/'**/types.go' \
":(glob)${in_root}"/'**/*.go' \
|| true \
) | xargs -0 -n1 dirname \
| LC_ALL=C sort -u