Generate for staging directories that are not client-go

This commit is contained in:
Clayton Coleman
2017-01-14 13:08:36 -05:00
parent d2cbdbd7d4
commit 62d1ae96c1
4 changed files with 8 additions and 5 deletions

View File

@@ -36,7 +36,11 @@ trap "rm -f '${CACHE}'" HUP INT TERM ERR
# Example:
# kfind -type f -name foobar.go
function kfind() {
find . \
# include the "special" vendor directories which are actually part
# of the Kubernetes source tree - generators will use these for
# including certain core API concepts.
find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver \
\( \
-not \( \
\( \
-path ./vendor -o \
@@ -47,6 +51,7 @@ function kfind() {
-path ./examples \
\) -prune \
\) \
\) \
"$@"
}