Open RyanW8 opened 1 year ago
Is there a way to wrap the whole thing? e.g.
{{`
bunches of helm things
`}}
Is there a way to wrap the whole thing? e.g.
{{` bunches of helm things `}}
In our example I don't think this would work as we're using a variable populated from the list
generator to generate the Vault path (see {{.env}}
in the example, this comes from the list generator we define)
I think I've found where this would need to be changed:
Summary
When using an ApplicationSet with
goTemplate
set totrue
it means that you are not able to use standard go templates anywhere in your chart as the controller tries to render the contents.Motivation
This is a problem for us as we inject secrets into our Pods using the Vault sidecar, configuration of the sidecar is controlled using annotations e.g:
With this configuration it causes the appset controller to try and render the Vault template but we just want it to render
{{.env}}
. To work around this we are doing:Proposal
The go
text/template
package allows you to override the default delimiters: https://pkg.go.dev/text/template#Template.Delims. If this was exposed as a configuration parameter it would allow us to set the delimiters to something else e.g.{{{
&}}}
respectively.