Skip to content

Commit

Permalink
Merge pull request kubernetes#46985 from deads2k/controller-09-agg-he…
Browse files Browse the repository at this point in the history
…alth

make the health check wait for ready apiservices
  • Loading branch information
foxish authored Jun 5, 2017
2 parents 0cff839 + 0ad98c2 commit cc294cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/kube-apiserver/app/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cc294cf

Please sign in to comment.