mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +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 {
|
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