-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Paths differ in how we treat them in configmaps and secrets #1335
Comments
Interesting.
I don't think so because that would be a breaking change, and we can't do that now (if we wanted to).
I don't see profile specific files being an issue with order since anything with an active profile should be higher priority regardless of where I think we could also consider deprecating this support entirely because Spring Boot now offers this with spring.config.import. |
thank you for the feedback, I'll fix this one, but I need to write proper integration tests. Some of them are already present here, so if you could take a look at that one, it would be much appreciated from me. thank you. |
I am actually leaning to not aligning them and deprecating this feature in the 2022 release and remove it in the next major release. Its duplicating what can be done with |
especially since it's buggy, to say the least. I found a few more bugs there:
So to get your input correctly:
Please correct me if I am wrong with anything. P.S. I would be more then glad to look closer at config import support. |
Yup. I think we just need to add a note to the documentation that the feature is deprecated and is scheduled for removal in the next major release. We shouldn't need to do anything to support |
Agreed. I just want to add/change integration tests. I'll look into this one and name it as |
it seems that this issue is a duplicate of this one, now that we agreed to re-purpose this one. We should close one as a duplicate of the other, no? |
Yup |
Consider the case when you have enabled:
and:
The first one expects an exact path for a config file, the second can actually "walk", see here.
While you can specify:
walking is still an option, unlike in config maps.
In its fairness, this is documented correctly. First:
and:
Still, it feels a bit weird that Secrets are able to walk a directory and ConfigMaps can't.
Should this be unified and should we make ConfigMaps directories "walkable" too?
Or may be in reverse, make Secrets "unwalkable"? The problem in providing support for
Files::walk
is order. This method does not define any order of reading files, so if you have mountedapplication.yaml
andapplication-prod.yaml
, there might be potential issues from run to run.The text was updated successfully, but these errors were encountered: