Skip to content

Commit 4554bd9

Browse files
Merge pull request #20504 from deads2k/controller-01-config
move build controller configapi to configapi
2 parents cc44853 + 8527fbb commit 4554bd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+734
-1108
lines changed

hack/lib/constants.sh

+9-7
Original file line numberDiff line numberDiff line change
@@ -350,19 +350,21 @@ function os::build::check_binaries() {
350350
# enforce that certain binaries don't accidentally grow too large
351351
# IMPORTANT: contact Clayton or another master team member before altering this code
352352
if [[ -f "${OS_OUTPUT_BINPATH}/${platform}/oc" ]]; then
353-
ocsize=$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/oc" | cut -f 1)
354-
if [[ "${ocsize}" -gt "118" ]]; then
355-
os::log::fatal "oc binary has grown substantially to ${ocsize}. You must have approval before bumping this limit."
353+
size=$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/oc" | cut -f 1)
354+
if [[ "${size}" -gt "118" ]]; then
355+
os::log::fatal "oc binary has grown substantially to ${size}. You must have approval before bumping this limit."
356356
fi
357357
fi
358358
if [[ -f "${OS_OUTPUT_BINPATH}/${platform}/openshift-node-config" ]]; then
359-
if [[ "$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/openshift-node-config" | cut -f 1)" -gt "22" ]]; then
360-
os::log::fatal "openshift-node-config binary has grown substantially. You must have approval before bumping this limit."
359+
size=$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/openshift-node-config" | cut -f 1)
360+
if [[ "${size}" -gt "30" ]]; then
361+
os::log::fatal "openshift-node-config binary has grown substantially to ${size}. You must have approval before bumping this limit."
361362
fi
362363
fi
363364
if [[ -f "${OS_OUTPUT_BINPATH}/${platform}/pod" ]]; then
364-
if [[ "$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/pod" | cut -f 1)" -gt "2" ]]; then
365-
os::log::fatal "pod binary has grown substantially. You must have approval before bumping this limit."
365+
size=$($duexe --apparent-size -m "${OS_OUTPUT_BINPATH}/${platform}/pod" | cut -f 1)
366+
if [[ "${size}" -gt "2" ]]; then
367+
os::log::fatal "pod binary has grown substantially to ${size}. You must have approval before bumping this limit."
366368
fi
367369
fi
368370
}

hack/update-generated-conversions.sh

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function codegen::join() { local IFS="$1"; shift; echo "$*"; }
1010

1111
# enumerate group versions
1212
ALL_FQ_APIS=(
13-
github.com/openshift/origin/pkg/build/controller/build/apis/defaults/v1
1413
github.com/openshift/origin/pkg/apps/apis/apps/v1
1514
github.com/openshift/origin/pkg/authorization/apis/authorization/v1
1615
github.com/openshift/origin/pkg/build/apis/build/v1

hack/update-generated-deep-copies.sh

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ function codegen::join() { local IFS="$1"; shift; echo "$*"; }
1111

1212
# enumerate group versions
1313
ALL_FQ_APIS=(
14-
github.com/openshift/origin/pkg/build/controller/build/apis/defaults
15-
github.com/openshift/origin/pkg/build/controller/build/apis/defaults/v1
16-
github.com/openshift/origin/pkg/build/controller/build/apis/overrides
17-
github.com/openshift/origin/pkg/build/controller/build/apis/overrides/v1
1814
github.com/openshift/origin/pkg/cmd/server/apis/config
1915
github.com/openshift/origin/pkg/cmd/server/apis/config/v1
2016
github.com/openshift/origin/pkg/cmd/server/apis/config/v1/testing

pkg/build/controller/build/apis/defaults/doc.go

-4
This file was deleted.

pkg/build/controller/build/apis/defaults/install/install.go

-14
This file was deleted.

pkg/build/controller/build/apis/defaults/register.go

-34
This file was deleted.

pkg/build/controller/build/apis/defaults/types.go

-57
This file was deleted.

pkg/build/controller/build/apis/defaults/v1/doc.go

-6
This file was deleted.

pkg/build/controller/build/apis/defaults/v1/register.go

-28
This file was deleted.

pkg/build/controller/build/apis/defaults/v1/swagger_doc.go

-32
This file was deleted.

pkg/build/controller/build/apis/defaults/v1/types.go

-55
This file was deleted.

pkg/build/controller/build/apis/defaults/v1/zz_generated.conversion.go

-113
This file was deleted.

0 commit comments

Comments
 (0)