Make openapi spec generation wait for the apiserver on shutdown

This commit is contained in:
Jordan Liggitt 2018-05-02 22:44:48 -04:00
parent a2ef4735cd
commit 30f2962ede
No known key found for this signature in database
GPG Key ID: 39928704103C7229

View File

@ -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