Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add selective namespaces to fabric8 loadbalancer #1604

Conversation

wind57
Copy link
Contributor

@wind57 wind57 commented Mar 18, 2024

No description provided.

wind57 and others added 30 commits December 4, 2021 07:59
@@ -66,6 +67,20 @@ public Flux<List<ServiceInstance>> get() {
.withField("metadata.name", serviceName).list().getItems();
services.forEach(service -> result.add(mapper.map(service)));
}
else if (!discoveryProperties.namespaces().isEmpty()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the only interesting change in this PR, where I add "selective namespace" support. Everything else are just tests: either additions or refactor of them a bit

Copy link
Contributor

Choose a reason for hiding this comment

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

We could simplify this code a bit. The result.add call is the same and we could probably extract that out of this logic so we are not repeating it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. And done, thank you

@wind57 wind57 marked this pull request as ready for review March 18, 2024 15:29
@wind57
Copy link
Contributor Author

wind57 commented Mar 18, 2024

@ryanjbaxter ready to be looked at. thank you

@ryanjbaxter ryanjbaxter merged commit cc43ce5 into spring-cloud:main Mar 18, 2024
14 checks passed
@ryanjbaxter ryanjbaxter added this to the 3.1.1 milestone Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants