mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Make openapi spec generation wait for the apiserver on shutdown
This commit is contained in:
parent
a2ef4735cd
commit
30f2962ede
@ -31,7 +31,11 @@ make -C "${KUBE_ROOT}" WHAT=cmd/kube-apiserver
|
|||||||
|
|
||||||
function cleanup()
|
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
|
kube::etcd::cleanup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user