Skip to content

Commit

Permalink
Only check file sizes on linux and mac amd64
Browse files Browse the repository at this point in the history
s390 currently is a much larger target
  • Loading branch information
smarterclayton committed Jul 12, 2018
1 parent 5d7adfd commit 51cab21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/lib/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ readonly OS_ALL_IMAGES=(
# os::build::check_binaries ensures that binary sizes do not grow without approval.
function os::build::check_binaries() {
platform=$(os::build::host_platform)
if [[ "${platform}" != "linux/amd64" && "${platform}" != "darwin/amd64" ]]; then
return 0
fi
# enforce that certain binaries don't accidentally grow too large
# IMPORTANT: contact Clayton or another master team member before altering this code
if [[ -f "${OS_OUTPUT_BINPATH}/${platform}/oc" ]]; then
Expand Down

0 comments on commit 51cab21

Please sign in to comment.