Merge pull request #17922 from smarterclayton/split_codec

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-01-25 06:30:39 -08:00
250 changed files with 5960 additions and 5507 deletions

View File

@@ -54,7 +54,7 @@ function generate_deep_copies() {
else
apiVersions="${ver}"
fi
KUBE_API_VERSIONS="${apiVersions}" generate_version "${ver}"
KUBE_API_VERSIONS="${apiVersions:-}" generate_version "${ver}"
done
}
@@ -62,6 +62,6 @@ function generate_deep_copies() {
# Currently pkg/api/deep_copy_generated.go is generated by the new go2idl generator.
# All others (mentioned above) are still generated by the old reflection-based generator.
# TODO: Migrate these to the new generator.
DEFAULT_VERSIONS="v1 authorization/ authorization/v1beta1 extensions/ extensions/v1beta1 componentconfig/ componentconfig/v1alpha1 metrics/ metrics/v1alpha1"
DEFAULT_VERSIONS="v1 authorization/__internal authorization/v1beta1 extensions/__internal extensions/v1beta1 componentconfig/__internal componentconfig/v1alpha1 metrics/__internal metrics/v1alpha1"
VERSIONS=${VERSIONS:-$DEFAULT_VERSIONS}
generate_deep_copies "$VERSIONS"

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
}