Skip to content

Commit

Permalink
Make openapi spec generation wait for the apiserver on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed May 3, 2018
1 parent a2ef473 commit 30f2962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/update-openapi-spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ make -C "${KUBE_ROOT}" WHAT=cmd/kube-apiserver

function cleanup()
{
[[ -n ${APISERVER_PID-} ]] && kill ${APISERVER_PID} 1>&2 2>/dev/null
if [[ -n ${APISERVER_PID-} ]]; then
kill ${APISERVER_PID} 1>&2 2>/dev/null
wait ${APISERVER_PID} || true
fi
unset APISERVER_PID

kube::etcd::cleanup

Expand Down

0 comments on commit 30f2962

Please sign in to comment.