From 5b30bf8a6772aef5bd441750c5671b1463a42eae 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 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. --- 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) }