spring-cloud-commons
spring-cloud-commons copied to clipboard
External property file change watch
Original https://github.com/spring-cloud/spring-cloud-kubernetes/issues/190
Code should live here since it is not specific to spring cloud.
See jhipster CloudConfigRefreshService for example.
Useful for spring cloud k8s. Related #604
Looks like this is related to https://github.com/spring-cloud/spring-cloud-config/issues/1439, I probably put that in the wrong project.
I did a naive implementation for a demo on k8s here: https://github.com/trisberg/mypets-app/blob/refresh-scope/src/main/java/com/springdeveloper/mypets/ConfigRefresher.java#L41
:wave: Is there interest in implementing this? I might be able to take a swing at it.
Yes please
This would be a great alternative to spring-cloud-kubernetes-configuration-watcher
. Get the application to the watch for config and secret changes and refresh Beans.
Hey, this would be great! How this would be different from the deprecated feature? Also, where can I find any discussion about why PropertySource
Reload has been deprecated. Is there any work-in-progress on this in the pre-releases?
@heruan IIRC (@ryanjbaxter?), the default mode for reload required k8s API access. spring-cloud-kubernetes-configuration-watcher is the preferred replacement. This would replace the polling option of reload. Watch to see the assignment to a Project or milestone, otherwise no work will have been done.