Encoding a template #1455
-
Hi! I am trying to use gomplate for Kubernetes secrets, and as such need to encode values. So far, I've tried
which results in a Is there any way to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
-
That does indeed work, I didn't scroll down far enough. Thank you so much for your quick answer! |
Beta Was this translation helpful? Give feedback.
The
template
action is a bit odd in that it doesn't behave like regular template functions. As an alternative, there'stmpl.Exec
, which should do what you want.