From a8391fd73f64b93c7ac7da754db51cb77693df8a Mon Sep 17 00:00:00 2001 From: Bird Date: Wed, 30 Nov 2022 16:58:41 +0800 Subject: [PATCH] feat: use text/template.FuncMap Signed-off-by: Bird --- pkg/util/template/render.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/template/render.go b/pkg/util/template/render.go index fc9bc75c7..bd9bcc902 100644 --- a/pkg/util/template/render.go +++ b/pkg/util/template/render.go @@ -14,7 +14,7 @@ func Render(name, templateStr string, variable any, funcMaps ...template.FuncMap t := template.New(name).Option("missingkey=error").Delims("[[", "]]") // use sprig functions such as "env" - t.Funcs(sprig.FuncMap()) + t.Funcs(sprig.TxtFuncMap()) for _, funcMap := range funcMaps { t.Funcs(funcMap) }