From f24a98b9ecd8a41f873cad77b6ff3bc00937c2fd Mon Sep 17 00:00:00 2001 From: walkafwalka <2865898-walkafwalka@users.noreply.gitlab.com> Date: Thu, 4 Apr 2019 23:36:31 -0700 Subject: [PATCH] Remove missing value validation Signed-off-by: walkafwalka <2865898-walkafwalka@users.noreply.gitlab.com> --- pkg/engine/engine.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 9a155de2e..e09e21293 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -228,13 +228,9 @@ func (e *Engine) renderWithReferences(tpls map[string]renderable, referenceTpls } }() t := template.New("gotpl") - if e.Strict { - t.Option("missingkey=error") - } else { - // Not that zero will attempt to add default values for types it knows, - // but will still emit for others. We mitigate that later. - t.Option("missingkey=zero") - } + // Not that zero will attempt to add default values for types it knows, + // but will still emit for others. We mitigate that later. + t.Option("missingkey=zero") funcMap := e.alterFuncMap(t, referenceTpls)