Alter the build to generate for __internal correctly

This commit is contained in:
Clayton Coleman
2015-12-21 00:25:12 -05:00
parent c1d932e44a
commit c49cd4edf9
3 changed files with 5 additions and 5 deletions

View File

@@ -282,7 +282,7 @@ kube::util::group-version-to-pkg-path() {
# moving the results to pkg/apis/api.
case "${group_version}" in
# both group and version are "", this occurs when we generate deep copies for internal objects of the legacy v1 API.
/)
__internal)
echo "api"
;;
v1)
@@ -292,7 +292,7 @@ kube::util::group-version-to-pkg-path() {
echo "api/unversioned"
;;
*)
echo "apis/${group_version}"
echo "apis/${group_version%__internal}"
;;
esac
}