mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +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 {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user