go - Config file masks -
we deploy services docker containers using marathon. containers include base config file, marathon pulls environment config file (which has subset of base keys) @ deployment time when app starts has;
- environment.toml
- config.toml
when reading config need conflate values in both files single set, masking/shadowing values present in both files in environment file.
i didn't find functionality in viper docs. unless have missed seems options are;
- write package uses viper read both files , perform conflation.
- extend viper
before start writing code, there mechanism doing this?
Comments
Post a Comment