fix(bootstraper): adding global variables support

Now we can declare "global" variables, in the "Globals" section the  the
configuration, this variables will be merged into the "Service"
variables and used in the templates. This how we share variables between
services.
This commit is contained in:
2022-07-01 14:56:41 +02:00
parent 9bb4e93d65
commit e9f8ff2506
8 changed files with 1447 additions and 30 deletions

View File

@ -17,11 +17,11 @@ func main() {
var hostConfig templater.TemplaterConfig
err := hostConfig.New(args.Config, args.TemplateDirectory)
err := hostConfig.New(args.Config, args.TemplateDirectory, args.RootDirectory)
if err != nil {
panic(err)
}
if err = hostConfig.ManageServices(args.RootDirectory); err != nil {
if err = hostConfig.ManageServices(); err != nil {
panic(err)
}
}