simplify group-version-to-pkg-path

This commit is contained in:
Chao Xu
2015-09-22 16:56:45 -07:00
parent 1daa365d7a
commit d599d07bc3
2 changed files with 6 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ EOF
mv "$TMPFILE" "pkg/$(kube::util::group-version-to-pkg-path "${group_version}")/types_swagger_doc_generated.go"
}
GROUP_VERSIONS=(api/unversioned api/v1 experimental/v1alpha1)
GROUP_VERSIONS=(unversioned v1 experimental/v1alpha1)
# To avoid compile errors, remove the currently existing files.
for group_version in "${GROUP_VERSIONS[@]}"; do
rm -f "pkg/$(kube::util::group-version-to-pkg-path "${group_version}")/types_swagger_doc_generated.go"