Ignore vendor folder on client code generation

During the client code generation, the vendor folder now will be ignored by default.

Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
This commit is contained in:
Juan Manuel Parrilla Madrid 2024-01-15 11:09:31 +01:00
parent be77b0b82b
commit 5cfd75a84e
No known key found for this signature in database
GPG Key ID: DE30627E53AC3969

View File

@ -33,7 +33,7 @@ function kube::codegen::internal::git_find() {
function kube::codegen::internal::git_grep() { function kube::codegen::internal::git_grep() {
# We want to include modified and untracked files because this might be # We want to include modified and untracked files because this might be
# running against code which is not tracked by git yet. # running against code which is not tracked by git yet.
git grep --untracked "$@" git grep --untracked "$@" ":(exclude)vendor/"
} }
# Generate tagged helper code: conversions, deepcopy, and defaults # Generate tagged helper code: conversions, deepcopy, and defaults