Commit cc294cfb authored by Anirudh Ramanathan's avatar Anirudh Ramanathan Committed by GitHub

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

make the health check wait for ready apiservices
parents 0cff8393 0ad98c29
...@@ -119,7 +119,10 @@ func createAggregatorServer(aggregatorConfig *aggregatorapiserver.Config, delega ...@@ -119,7 +119,10 @@ func createAggregatorServer(aggregatorConfig *aggregatorapiserver.Config, delega
for _, apiService := range apiServices { for _, apiService := range apiServices {
found := false found := false
for _, item := range items { for _, item := range items {
if item.Name == apiService.Name { if item.Name != apiService.Name {
continue
}
if apiregistration.IsAPIServiceConditionTrue(item, apiregistration.Available) {
found = true found = true
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment