KEMBAR78
Add selective namespaces to fabric8 loadbalancer by wind57 · Pull Request #1604 · spring-cloud/spring-cloud-kubernetes · GitHub
Skip to content

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
.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
@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