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 feature to watch config directory for file changes and refresh components marked with @RefreshScope #1439

Open
trisberg opened this issue Aug 6, 2019 · 2 comments

Comments

@trisberg
Copy link
Member

trisberg commented Aug 6, 2019

I'd like to be able to watch config files for changes and use a ContextRefresher to reload any config components marked with @RefreshScope. This would make it possible to have the application get updated with new values from configMaps or secrets mounted as files when using Kubernetes. We would need to provide a directory like /config that should be watched for file changes to any files in that directory. When change is detected the refresh() method on a ContextRefresher could be called.

@jayati-naik
Copy link

Hi Trisberg, I hope you are doing good. Will you please update when this enhancement is planned to be available to use ?

Thanks,
Jayati

@onelapahead
Copy link

Any updates on this one? Golang has had this in Viper for some time, it kinda surprises me Spring Boot/Cloud can't reload properties from a file when it changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants