-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add selective namespaces to fabric8 loadbalancer #1604
Conversation
Configure Renovate
@@ -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()) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@ryanjbaxter ready to be looked at. thank you |
No description provided.