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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -