Skip to content

Commit cabe69f

Browse files
committed
clean up unused vars in codegen scripts
1 parent a2c200a commit cabe69f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

hack/update-codegen.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ informergen=$(kube::util::find-binary "informer-gen")
4040

4141
GROUP_VERSIONS=(${KUBE_AVAILABLE_GROUP_VERSIONS})
4242
GV_DIRS=()
43-
INTERNAL_DIRS=()
4443
for gv in "${GROUP_VERSIONS[@]}"; do
4544
# add items, but strip off any leading apis/ you find to match command expectations
4645
api_dir=$(kube::util::group-version-to-pkg-path "${gv}")
@@ -55,19 +54,9 @@ for gv in "${GROUP_VERSIONS[@]}"; do
5554
fi
5655

5756
GV_DIRS+=("${pkg_dir}")
58-
59-
# collect internal groups
60-
int_group="${pkg_dir%/*}/"
61-
if [[ "${pkg_dir}" = core/* ]]; then
62-
int_group="api/"
63-
fi
64-
if ! [[ " ${INTERNAL_DIRS[@]:-} " =~ " ${int_group} " ]]; then
65-
INTERNAL_DIRS+=("${int_group}")
66-
fi
6757
done
6858
# delimit by commas for the command
6959
GV_DIRS_CSV=$(IFS=',';echo "${GV_DIRS[*]// /,}";IFS=$)
70-
INTERNAL_DIRS_CSV=$(IFS=',';echo "${INTERNAL_DIRS[*]// /,}";IFS=$)
7160

7261
# This can be called with one flag, --verify-only, so it works for both the
7362
# update- and verify- scripts.

0 commit comments

Comments
 (0)