Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Sep 26, 2025

No description provided.

LOG.debug(() -> "discovering services in selective namespaces : " + selectiveNamespaces);
selectiveNamespaces.forEach(selectiveNamespace -> {
List<V1Service> services = services(selectiveNamespace, serviceName);
return Flux.defer(() -> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the real fix is here. we used to have code like this:

public Flux<List<ServiceInstance>> get() {
    List<ServiceInstance> result = new ArrayList<>();
    ....
   return Flux.just(result); 
}

and it was changed to:

public Flux<List<ServiceInstance>> get() {
    return Flux.defer(() -> {
   
          List<ServiceInstance> result = new ArrayList<>();
          ....
          return Flux.just(result); 

    })
}

This was done in fabric8 and native k8s. everything else in this PR is just tests

Signed-off-by: wind57 <[email protected]>
@wind57 wind57 marked this pull request as ready for review September 26, 2025 18:59
@wind57
Copy link
Contributor Author

wind57 commented Sep 26, 2025

@ryanjbaxter this one is ready also. thank you

@ryanjbaxter ryanjbaxter merged commit 9432ef8 into spring-cloud:3.2.x Sep 26, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loadbalancer with SERVICE mode cannot discover newly created services

3 participants