open-nomad/client/allocrunner/taskrunner/template
Mahmood Ali b17bac5101 Render consul templates using task env only (#6055)
When rendering a task consul template, ensure that only task environment
variables are used.

Currently, `consul-template` always falls back to host process
environment variables when key isn't a task env var[1].  Thus, we add
an empty entry for each host process env-var not found in task env-vars.

[1] bfa5d0e133/template/funcs.go (L61-L75)
2019-08-05 16:30:47 -04:00
..
template.go Render consul templates using task env only (#6055) 2019-08-05 16:30:47 -04:00
template_test.go Render consul templates using task env only (#6055) 2019-08-05 16:30:47 -04:00