From a7b5f6ac941204411f822edee2ddf49cae964af6 Mon Sep 17 00:00:00 2001 From: John Hanks Date: Wed, 28 Feb 2024 06:36:26 -0600 Subject: [PATCH] Drop 'tr' as a custom function. --- internal/pkg/overlay/overlay.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/pkg/overlay/overlay.go b/internal/pkg/overlay/overlay.go index e5330eb0..9bb98aff 100644 --- a/internal/pkg/overlay/overlay.go +++ b/internal/pkg/overlay/overlay.go @@ -355,9 +355,6 @@ func RenderTemplateFile(fileName string, data TemplateStruct) ( // Build our FuncMap funcMap := template.FuncMap{ - "tr": func(source, old, new string) string { - return strings.Replace(source, old, new, -1) - }, "Include": templateFileInclude, "IncludeFrom": templateContainerFileInclude, "IncludeBlock": templateFileBlock,