Skip to content
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

template: add toJSON #329

Closed
wants to merge 1 commit into from
Closed

template: add toJSON #329

wants to merge 1 commit into from

Conversation

greut
Copy link

@greut greut commented Apr 18, 2020

toJSON is very helpful to produce valid env values when the variable contains # or \

(This was stolen from consul-template, of course)

Signed-off-by: Yoan Blanc <[email protected]>
@greut
Copy link
Author

greut commented May 5, 2020

And alternative would be to add sprig, hashicorp/consul-template#1312

@jrasell
Copy link
Member

jrasell commented Aug 14, 2020

@greut thanks for this. As it happens over the past week someone internally has worked on adding sprig to the template functions list and this is ready to be merged. Are you happy if I close this in favour of that?

@greut
Copy link
Author

greut commented Aug 14, 2020

@jrasell I've been using sprig as well finally. Cheers,

@greut greut closed this Aug 14, 2020
@greut greut deleted the tojson branch August 14, 2020 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants