-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix scheduled discovery when allNamespaces property is true #544
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
Fix scheduled discovery when allNamespaces property is true #544
Conversation
Is Spring Boot Admin using cc: @Haybu |
apparently yes as adding that's also how it works with discovery based on consul as far as I understand it (https://cloud.spring.io/spring-cloud-consul/2.1.x/multi/multi_spring-cloud-consul-discovery.html) |
any more feedback ? Until this fix is released I have to maintain a custom implementation of KubernetesCatalogWatch to make it work |
Please me patient. The next release isn't scheduled until May. |
of course, I just wanted to know if the fix looks good for you or if I have to change something before it can be merged |
Hello there, I'm still waiting for feedback :) |
:+1 I have the same problem in the description :/ |
hi @weliff unfortunately as you can see I have had no feedback at all on this 20 LOC PR for more than 2 months now (I still don't understand why). The only solution for now is to create a custom bean implementing KubernetesCatalogWatch doing what this PR does, I hope you managed to do so 👍 |
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.
/cc @ryanjbaxter @Haybu
Hi! We can see it is merged - great! :-) But do you @ryanjbaxter plan also to release it - like soon - in scope of 1.1? |
Yes our next Hoxton service release will contain this change. You can find dates here https://github.com/spring-cloud/spring-cloud-release/milestones |
Relates to #428 #448 #465
Type of request
Bug fix
Behavior
When
spring.cloud.kubernetes.discovery.all-namespaces
is true@EnableScheduling
has been setthe service/pod discovery never see any addition/deletion of pods for a given service in a different namespace that the one the spring boot admin server is in.
How to reproduce
A
, deploy a spring boot application (deployment and service) with one replicaB
, deploy a spring boot admin server with the following annotations (as per the documentation of this project) :@SpringBootApplication @EnableAdminServer @EnableDiscoveryClient @EnableScheduling
, the propertyspring.cloud.kubernetes.discovery.all-namespaces
set to true (and the required rbac configuration)Expected behavior
When these conditions are met we expect to see the dynamically updated list of instances in spring boot admin server without restarting it.
Please let me know if there is anything wrong with this patch, I had never used this lib before this morning so I might be missing something obvious. Adding
inAnyNamespace()
definitely fixes the issue thoughThanks