make the health check wait for ready apiservices

This commit is contained in:
deads2k 2017-06-05 15:05:33 -04:00
parent d3146080b4
commit 0ad98c29f0

View File

@ -120,7 +120,10 @@ func createAggregatorServer(aggregatorConfig *aggregatorapiserver.Config, delega
for _, apiService := range apiServices {
found := false
for _, item := range items {
if item.Name == apiService.Name {
if item.Name != apiService.Name {
continue
}
if apiregistration.IsAPIServiceConditionTrue(item, apiregistration.Available) {
found = true
break
}