update generation bash to handle vendor dir

This commit is contained in:
deads2k
2017-01-17 08:55:50 -05:00
parent a6b655fb6a
commit e100e8990b
7 changed files with 36 additions and 13 deletions

View File

@@ -45,7 +45,8 @@ GV_DIRS=()
for gv in "${GROUP_VERSIONS[@]}"; do
# add items, but strip off any leading apis/ you find to match command expectations
api_dir=$(kube::util::group-version-to-pkg-path "${gv}")
pkg_dir=${api_dir#apis/}
nopkg_dir=${api_dir#pkg/}
pkg_dir=${nopkg_dir#apis/}
# skip groups that aren't being served, clients for these don't matter
if [[ " ${KUBE_NONSERVER_GROUP_VERSIONS} " == *" ${gv} "* ]]; then