From bf72b2a15240fe4f4c1ca55040f0069179af19f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Hern=C3=A1ndez?= <23639005+israel-hdez@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:54:37 -0600 Subject: [PATCH] Replace "foo" string with a less generic one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If template parsing fails, the "foo" string would appear in pod logs. This should be very hard to happen, since the template is built-in. Changing, simply, to have more meaningful logs. Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com> --- controllers/config/templating.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/config/templating.go b/controllers/config/templating.go index 6f4b41664..d45f8691f 100644 --- a/controllers/config/templating.go +++ b/controllers/config/templating.go @@ -49,7 +49,7 @@ func templateSource(r io.Reader, context interface{}) mf.Source { if err != nil { panic(err) } - t, err := template.New("foo").Parse(string(b)) + t, err := template.New("modelMeshTemplate").Parse(string(b)) if err != nil { panic(err) }