Open tm-nadavsh opened 6 months ago
I'm assuming that Go Template function code. If that's the case, you can use delims.left
and delims.right
to specify different delimitators. I, for example, tended to use [[
and ]]
instead.
As a side note, after using Go Template, CUE, and KCL functions for, more or less, the same outcome, I settled on KCL.
After watching the video, tried to implement the pushSecret part in my own code via argoCD, when doing so i wasnt able to actually render the secret values at:
after some investigation i understood that the issue is that this is a template and in argoCD i also template a helm chart, so if using just curly brackets it will render during the initial rendering of helm and then when the pushSecret Object is actually created it will have something like:
The solution is to escape the curly brackets with another curly brackets like so:
This was after the helm template we will still have the desired values in the pushSecret object.
IDK if this fix should be in the code but i think it should be at least mentioned some where as it took me a good amount of time to find the issue and it could save time for other developers