tazjin/kontemplate

[Feature] Ability to exclude some resources (or files) from template processing

Closed this issue · 5 comments

This is not an issue, but an improvement suggestion.

Some Kubernetes ConfigMap manifests can contain "{{}}" blocks which are interpreted as templates by Kontemplate and lead to manifest processing errors. For example prometheus-operator addon for kops.

So maybe ability to exclude some manifests from template processing will be a good feature :)

+1

@merlineus how u solve this now? Thanks for the answer.

Temp solution is to escape it like
{{`{{Your.Data}}`}}

Interesting, my gut feeling is that escaping should probably be used (like @vlevitskiy-gemicle demonstrated above) but that would probably get ugly for files containing lots of these templates.

@vlevitskiy-gemicle the only way I've found is escaping, but it's ugly and boring :)
For example, there are about 50 occurrences in the specified kops addon. Also it's harder to track changes in files.

The source of kontemplate is moving to git.tazj.in and I've moved this issue to the depot@tazj.in mailing list over here.