-
Notifications
You must be signed in to change notification settings - Fork 62
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
Docs: common
section and root vars injection rules should be better documented
#93
Comments
This one is a bit tricky since we would need to figure out if the user really want to use the This example kind of illustrates it: FOO: foo-base
common:
FOO: foo-common
production:
BAR: bar Would the result of I think if you use Let me chew on this a bit this week. |
Based on some other observations, what I've seen is that "last thing defined, wins". So in your example, I would expect to see To be honest though, I hadn't thought to combine an implicit base section along with an explicit Perhaps this issue can simply be converted into a request for more explicit examples in the docs? |
Yeah I think that putting this in the docs would be the best place since current behavior iirc from playing around with this yesterday is that it's doing an |
common
/ default
sections should always be injectedcommon
section and root vars injection rules should be better documented
Works for me, thanks! |
I'd like to give this a little push... I do have quite some secrets to inject an only for special purposes I need to overwrite some of them. So the combination of section-less common part with a section for specific secrets would help me a lot. with the current implementation I'd always need to provide an explicit For me It would already be sufficient to support one of the following solutions: either allow section-less common part (and always load it) OR have a P.S.: another problem currently is that if you have a section-less part and a section |
Given the following
secrets.yml
:Here is some observed behavior:
The first two observations match my expectations based on the documentation.
The third example's behavior isn't mentioned in the documentation, so I won't go so far as to call it a bug.
However, it is mildly surprising. Since
common
is always inherited by other sections, I kinda had a weak expectation that its values would always get injected, even if we do not pass-e
on the command line.Docs should be elaborated with examples to describe the behavior in more details between root vars and
common
section as it changes when using and omitting the-e
variable.The text was updated successfully, but these errors were encountered: