You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would there be any possibility of creating ENV templating that overwrites yaml variables?
Like:
targets:
main:
bucket:
name: XYZ
Would be able to be overwiritten by setting up: CONFIG_TARGETS_MAIN_BUCKET_NAME variable. As having several yamls where just bucket name varies is making my code messy.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello @wstarzak , I tried several times but it doesn't work as you wanted :( .
The project is using Viper to get all configuration files and load values from it.
Environment values are supported but they only override already present values in the YAML files.
This means you cannot create new configuration sections just from environment variables (which is really annoying....)...
I hope the Viper V2 library will have a solution for that. Or I may need to completely change the library to avoid one...
Hello,
Would there be any possibility of creating ENV templating that overwrites yaml variables?
Like:
Would be able to be overwiritten by setting up:
CONFIG_TARGETS_MAIN_BUCKET_NAME
variable. As having several yamls where just bucket name varies is making my code messy.Thank you!
The text was updated successfully, but these errors were encountered: