Skip to content

Commit

Permalink
Merge pull request kubernetes#11039 from nikhiljindal/beta3Conversion
Browse files Browse the repository at this point in the history
Updating the scripts to not delete v1beta3 conversions and copies
  • Loading branch information
wojtek-t committed Jul 10, 2015
2 parents ccc4cfc + 1350cc8 commit 22e63a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
6 changes: 4 additions & 2 deletions hack/update-generated-conversions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ EOF
}

VERSIONS="v1beta3 v1"
for ver in $VERSIONS; do
generate_version "${ver}"
for ver in $VERSIONS; do
# Ensure that the version being processed is registered by setting
# KUBE_API_VERSIONS.
KUBE_API_VERSIONS="${ver}" generate_version "${ver}"
done
26 changes: 18 additions & 8 deletions hack/update-generated-deep-copies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,21 @@ EOF
mv $TMPFILE `result_file_name ${version}`
}

VERSIONS="api v1beta3 v1"
# To avoid compile errors, remove the currently existing files.
for ver in $VERSIONS; do
rm -f `result_file_name ${ver}`
done
for ver in $VERSIONS; do
generate_version "${ver}"
done
function generate_deep_copies() {
local versions="api v1beta3 v1"
# To avoid compile errors, remove the currently existing files.
for ver in ${versions}; do
rm -f `result_file_name ${ver}`
done
apiVersions=""
for ver in ${versions}; do
# Ensure that the version being processed is registered by setting
# KUBE_API_VERSIONS.
if [ "${ver}" != "api" ]; then
apiVersions="${ver}"
fi
KUBE_API_VERSIONS="${apiVersions}" generate_version "${ver}"
done
}

generate_deep_copies

0 comments on commit 22e63a7

Please sign in to comment.