Merge pull request #46985 from deads2k/controller-09-agg-health

make the health check wait for ready apiservices
This commit is contained in:
Anirudh Ramanathan 2017-06-05 14:33:23 -07:00 committed by GitHub
commit cc294cfb7e

View File

@ -119,7 +119,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
}