Skip to content

Commit

Permalink
Replace "foo" string with a less generic one
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
israel-hdez committed Jan 16, 2024
1 parent 5f9c6f7 commit d8fe432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/config/templating.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d8fe432

Please sign in to comment.