diff --git a/cmd/kube-apiserver/app/aggregator.go b/cmd/kube-apiserver/app/aggregator.go index 370ad2ed0c0cc..9c9d587d141f3 100644 --- a/cmd/kube-apiserver/app/aggregator.go +++ b/cmd/kube-apiserver/app/aggregator.go @@ -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 }