Add again env and expandenv from sprig

Signed-off-by: David Schneider <dsbrng25b@gmail.com>
pull/5815/head
David Schneider 6 years ago
parent 2a3b7b5395
commit a4e7b7ca38

@ -62,13 +62,6 @@ func TestSortTemplates(t *testing.T) {
func TestFuncMap(t *testing.T) {
fns := funcMap()
forbidden := []string{"env", "expandenv"}
for _, f := range forbidden {
if _, ok := fns[f]; ok {
t.Errorf("Forbidden function %s exists in FuncMap.", f)
}
}
// Test for Engine-specific template functions.
expect := []string{"include", "required", "tpl", "toYaml", "fromYaml", "toToml", "toJson", "fromJson"}
for _, f := range expect {

@ -44,8 +44,6 @@ import (
//
func funcMap() template.FuncMap {
f := sprig.TxtFuncMap()
delete(f, "env")
delete(f, "expandenv")
// Add some extra functionality
extra := template.FuncMap{

Loading…
Cancel
Save