From 8528548441b826533d896ebf01b6a0c911eff6d8 Mon Sep 17 00:00:00 2001 From: Daniel Cheng Date: Fri, 7 Feb 2020 18:16:16 -0500 Subject: [PATCH] fix recursion count in templates Signed-off-by: Daniel Cheng --- pkg/engine/engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 490561037..1cc94d685 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -120,6 +120,7 @@ func (e Engine) initFunMap(t *template.Template, referenceTpls map[string]render includedNames[name] = 1 } err := t.ExecuteTemplate(&buf, name, data) + includedNames[name]-- return buf.String(), err }