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

Deprecate path support in secrets and config #631

Open
spencergibb opened this issue Sep 14, 2020 · 5 comments · Fixed by #1336
Open

Deprecate path support in secrets and config #631

spencergibb opened this issue Sep 14, 2020 · 5 comments · Fixed by #1336
Assignees
Labels

Comments

@spencergibb
Copy link
Member

You can use boot config location for config maps as files and the new support for key/value files.

@Haybu
Copy link
Contributor

Haybu commented Oct 5, 2020

reference: https://spring.io/blog/2020/08/14/config-file-processing-in-spring-boot-2-4

nothing happens with using spring.config.import=configtree:.... Same as reported issue spring-projects/spring-boot#23232

@wind57
Copy link
Contributor

wind57 commented May 9, 2023

So we deprecated path support, what about POLLING and EVENT based reload? That is, reload without configuration watcher.

I am asking because if we remove path support, reload without configuration watcher will not work. What I mean:

  • someone was using paths support + reload without configuration watcher
  • everything was working just fine for them
  • we now encourage them to use spring.config.import and suppose they switch
  • their reload now does not work.

This happens because our process of detecting changes does not care about spring.config.import sources of any type.


Now, if that is something we need to "fix" or not depends on the simple fact if we want to support POLLING and EVENT based reloads (again, something you could achieve without configuration watcher image) in the next major release.

  • if the answer is no, we can deprecate it now and add proper warnings in the code (just like we did for path support)
  • in the next major release, we remove everything related to: path support + reload without configuration watcher.

If we want to support reload (with spring.config.import) without configuration watcher, then it needs to be fixed.

@ryanjbaxter I hope I am making sense. I was really trying to remove paths support in a separate PR and integration tests started failing, so this is how I came to the above.

@ryanjbaxter
Copy link
Contributor

Yes, if they want the reload functionality they would have to use the configuration watcher, so yes reload using path would be deprecated as well (but to me this implied in the fact that path support is deprecated)

@wind57
Copy link
Contributor

wind57 commented May 9, 2023

let me confirm then. In the next major release, we remove:

  • path support
  • polling support
  • event based support
  • the only way to reload will be via configuration watcher.

Please correct me if I'm wrong.

@ryanjbaxter
Copy link
Contributor

Right but only the path configuration. If you are specifying configmaps/secrets without mounting them as volumes reload support continues to work as is.

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

Successfully merging a pull request may close this issue.

4 participants