mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #46985 from deads2k/controller-09-agg-health
make the health check wait for ready apiservices
This commit is contained in:
commit
cc294cfb7e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user