Thanks to a nice suggestion by kydorn in issue #18, the file datasource supports a
global_values: block, so you can now create defaults per environment (and use the defaults datasource to provide a default for all environments). This is available in Tiller 0.7.7, which was just released.
This means if you have a common value that you want available to all templates (but may be different in each environment), you don’t have to repeat the definition for every template. In conjunction with the defaults datasource, it lets you do things like :
- Use the defaults datasource to specify default values for all environments
global_values:for defaults specific to each environment
- Optionally over-write them with local
config:values on templates
There’s an example now in the README.md which demonstrates this :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Hopefully that will cut down the size of some config files, and also introduce some more flexibility to your Tiller setup. Thanks again, Kydorn, for the suggestion!