mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #94820 from roycaihw/conversion-gen-clean-build
verify-generated-swagger-docs: remove unnecessary build
This commit is contained in:
commit
3fd5f367d6
@ -28,21 +28,6 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
kube::golang::setup_env
|
||||
|
||||
make -C "${KUBE_ROOT}" WHAT=cmd/genswaggertypedocs
|
||||
|
||||
# Find binary
|
||||
genswaggertypedocs=$(kube::util::find-binary "genswaggertypedocs")
|
||||
|
||||
if [[ ! -x "$genswaggertypedocs" ]]; then
|
||||
{
|
||||
echo "It looks as if you don't have a compiled genswaggertypedocs binary"
|
||||
echo
|
||||
echo "If you are running from a clone of the git repo, please run"
|
||||
echo "'make WHAT=cmd/genswaggertypedocs'."
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
_tmpdir="$(kube::realpath "$(mktemp -d -t swagger-docs.XXXXXX)")"
|
||||
function swagger_cleanup {
|
||||
rm -rf "${_tmpdir}"
|
||||
|
Loading…
Reference in New Issue
Block a user