different file name for rendered output file

20 views
Skip to first unread message

Pranav Gupta

unread,
Mar 20, 2019, 11:32:44 AM3/20/19
to kapitan-discuss
Hi all, 

How can we change rendered file name (lets say foo.conf should be rendered to bar.conf) ?

Thanks
Pranav


Pawel Sarbinowski

unread,
Mar 20, 2019, 11:42:56 AM3/20/19
to Pranav Gupta, kapitan-discuss
if you use jsonnet, you can just use a different name in the object you generate. 
Example: https://github.com/deepmind/kapitan/blob/master/examples/terraform/templates/terraform/main.jsonnet (the dictionary keys "output.tf", "provider.tf" are the filenames of the outputs).
jinja2 doesn't have the same capabilities as far as I'm aware. 

--
You received this message because you are subscribed to the Google Groups "kapitan-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kapitan-discu...@googlegroups.com.
To post to this group, send email to kapitan...@googlegroups.com.
Visit this group at https://groups.google.com/group/kapitan-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/kapitan-discuss/cc30ade6-afd9-4819-9fe2-955fbf0d6b55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Pawel Sarbinowski | DevOps Engineer | paw...@google.com 

Pranav Gupta

unread,
Mar 20, 2019, 12:34:27 PM3/20/19
to kapitan-discuss
Thanks Pawel
Reply all
Reply to author
Forward
0 new messages