-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling recipe interpolation #735
Comments
Did you get this working? I think you'll need another set of single quotes:
I think it would be good to be able to disable interpolation in individual recipes. It would probably need attributes, as proposed #604. It might be hard though, since the lexer would need to be know when it was lexing a recipe without interpolation. |
I finally got the right result, but I think it's an inelegant solution, and in a complex scenario, the expression becomes extremely difficult to read.
|
I agree, it's definitely not very nice, and ideally could be improved. |
I just released v0.8.5, which allows escaping a |
There are many tools that use go-template to get field values, such as
kubectl get secret nfluxdb2-auth -n monitoring --template={{index .data "admin-password"}} | base64 -d
which are difficult to render with the escept.
I tried
{{ '{{index .data "admin-password"}}' }}
and
"{{" '{{index .data "admin-password"}}' "}}"
that didn't work properly
The text was updated successfully, but these errors were encountered: