diff --git a/pkg/clustersconfig/clustersconfig.go b/pkg/clustersconfig/clustersconfig.go index 131b440..245e8aa 100644 --- a/pkg/clustersconfig/clustersconfig.go +++ b/pkg/clustersconfig/clustersconfig.go @@ -135,6 +135,11 @@ func (t *Template) Execute(contextName, elementName string, wr io.Writer, data i indented = indent + strings.Replace(s, "\n", "\n"+indent, -1) return }, + "yaml": func(v any) (s string, err error) { + ba, err := yaml.Marshal(v) + s = string(ba) + return + }, } for name, f := range extraFuncs {