mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Make openapi spec generation wait for the apiserver on shutdown
This commit is contained in:
		@@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user