mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
make the health check wait for ready apiservices
This commit is contained in:
parent
d3146080b4
commit
0ad98c29f0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user