Skip to content

Commit ec15721

Browse files
Merge pull request #12311 from smarterclayton/disable_verify_client
Verify generated clientset should check errors
2 parents f9b9960 + cfc4897 commit ec15721

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

hack/update-generated-clientsets.sh

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ if [[ ! "$clientgen" ]]; then
1818
exit 1
1919
fi
2020

21-
os::build::os_version_vars
22-
origin_version="v${OS_GIT_MAJOR}_${OS_GIT_MINOR%+}"
23-
2421
exit 0
2522

2623
packages=(

hack/verify-generated-clientsets.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
33

44
echo "===== Verifying Generated Client sets ====="
5-
output=$(VERIFY=true ${OS_ROOT}/hack/update-generated-clientsets.sh 2>&1)
65

7-
if [[ "$?" == "0" ]]; then
6+
if output=$(VERIFY=true ${OS_ROOT}/hack/update-generated-clientsets.sh 2>&1); then
87
echo "SUCCESS: Generated client sets up to date."
98
else
10-
echo $output
9+
echo "${output}"
1110
echo "FAILURE: Generated client sets out of date. Please run hack/update-generated-clientsets.sh"
1211
exit 1
1312
fi

0 commit comments

Comments
 (0)