From 03cee68e47d7aea96243fe36086aedcc59dc8ae2 Mon Sep 17 00:00:00 2001 From: gmarek Date: Fri, 4 Aug 2017 12:27:32 +0200 Subject: [PATCH] Don't expect internal clientset to be generated for groups without new types --- hack/verify-api-groups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-api-groups.sh b/hack/verify-api-groups.sh index 51dd09e2f79..bbfcb0f0200 100755 --- a/hack/verify-api-groups.sh +++ b/hack/verify-api-groups.sh @@ -81,7 +81,7 @@ for group_dirname in "${group_dirnames[@]}"; do found=1 fi done - if [ "${found}" -ne "1" ] ; then + if [[ "${found}" -ne "1" && -f "${group_dirname}/types.go" ]] ; then echo "need to add ${group_dirname}/ to ${client_gen_file}" exit 1 fi